File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/test/java/com/fishercoder Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
package com .fishercoder ;
2
2
3
3
import com .fishercoder .common .classes .TreeNode ;
4
- import com .fishercoder .common .utils .CommonUtils ;
5
4
import com .fishercoder .common .utils .TreeUtils ;
6
- import com .fishercoder .solutions ._2007 ;
7
5
import com .fishercoder .solutions ._222 ;
8
6
import org .junit .jupiter .api .BeforeEach ;
9
7
import org .junit .jupiter .api .Test ;
@@ -44,9 +42,9 @@ public void test2() {
44
42
45
43
@ Test
46
44
public void test3 () {
47
- root = TreeUtils .constructBinaryTree (Arrays .asList ());
45
+ root = TreeUtils .constructBinaryTree (Arrays .asList (0 ));
48
46
TreeUtils .printBinaryTree (root );
49
- expected = 3 ;
47
+ expected = 1 ;
50
48
assertEquals (expected , solution1 .countNodes (root ));
51
49
assertEquals (expected , solution2 .countNodes (root ));
52
50
}
You can’t perform that action at this time.
0 commit comments