@@ -597,7 +597,8 @@ impl<N: TreeNode + HashNode + Clone + Eq, C: CSEController<Node = N>> CSE<N, C>
597
597
mod test {
598
598
use crate :: alias:: AliasGenerator ;
599
599
use crate :: cse:: { CSEController , HashNode , IdArray , Identifier , NodeStats , CSE } ;
600
- use crate :: tree_node:: tests:: TestTreeNode ;
600
+ use crate :: tree_node:: tests:: test_tree_node:: TestTreeNode ;
601
+ use crate :: tree_node:: tests:: TestTree ;
601
602
use crate :: Result ;
602
603
use std:: collections:: HashSet ;
603
604
use std:: hash:: { Hash , Hasher } ;
@@ -670,21 +671,22 @@ mod test {
670
671
TestTreeNodeMask :: Normal ,
671
672
) ) ;
672
673
673
- let a_plus_1 = TestTreeNode :: new (
674
+ let a_plus_1 = TestTreeNode :: new_with_children (
674
675
vec ! [
675
676
TestTreeNode :: new_leaf( "a" . to_string( ) ) ,
676
677
TestTreeNode :: new_leaf( "1" . to_string( ) ) ,
677
678
] ,
678
679
"+" . to_string ( ) ,
679
680
) ;
680
- let avg_c = TestTreeNode :: new (
681
+ let avg_c = TestTreeNode :: new_with_children (
681
682
vec ! [ TestTreeNode :: new_leaf( "c" . to_string( ) ) ] ,
682
683
"avg" . to_string ( ) ,
683
684
) ;
684
- let sum_a_plus_1 = TestTreeNode :: new ( vec ! [ a_plus_1] , "sum" . to_string ( ) ) ;
685
+ let sum_a_plus_1 =
686
+ TestTreeNode :: new_with_children ( vec ! [ a_plus_1] , "sum" . to_string ( ) ) ;
685
687
let sum_a_plus_1_minus_avg_c =
686
- TestTreeNode :: new ( vec ! [ sum_a_plus_1, avg_c] , "-" . to_string ( ) ) ;
687
- let root = TestTreeNode :: new (
688
+ TestTreeNode :: new_with_children ( vec ! [ sum_a_plus_1, avg_c] , "-" . to_string ( ) ) ;
689
+ let root = TestTreeNode :: new_with_children (
688
690
vec ! [
689
691
sum_a_plus_1_minus_avg_c,
690
692
TestTreeNode :: new_leaf( "2" . to_string( ) ) ,
0 commit comments