Peano
Loading...
Searching...
No Matches
test_splittrees_leaf_distribution.py File Reference

Go to the source code of this file.

Namespaces

namespace  test_splittrees_leaf_distribution
 

Functions

 test_splittrees_leaf_distribution._balanced_decomposition (total_leaves, number_of_subtrees)
 Build an even decomposition list expected by Stage I helpers.
 
 test_splittrees_leaf_distribution.test_leaf_distribution_balanced_across_subtrees (dimensions, number_of_subtrees)
 Stage I ("Leaf Distribution") invariant test in 2D and 3D.
 
 test_splittrees_leaf_distribution.test_leaf_distribution_does_not_modify_non_leaf_nodes (dimensions)
 Stage I invariant: non-leaf nodes (internal nodes with children) must NOT be modified by Stage I leaf distribution.
 
 test_splittrees_leaf_distribution.test_leaf_distribution_only_redistributes_subtree_0 (dimensions)
 Stage I invariant: only leaves in subtree 0 are redistributed.
 
 test_splittrees_leaf_distribution.test_leaf_distribution_preserves_node_existence_weights (dimensions)
 Stage I invariant: node existence flags (weights) must NOT be modified.
 
 test_splittrees_leaf_distribution.test_leaf_distribution_returns_correct_moved_nodes_count (dimensions)
 Stage I invariant: the returned moved_nodes list must accurately reflect how many leaves were assigned to each subtree.