Skip to content

Commit 122596c

Browse files
update 222 test
1 parent 9177d16 commit 122596c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/java/com/fishercoder/_222Test.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package com.fishercoder;
22

33
import com.fishercoder.common.classes.TreeNode;
4-
import com.fishercoder.common.utils.CommonUtils;
54
import com.fishercoder.common.utils.TreeUtils;
6-
import com.fishercoder.solutions._2007;
75
import com.fishercoder.solutions._222;
86
import org.junit.jupiter.api.BeforeEach;
97
import org.junit.jupiter.api.Test;
@@ -44,9 +42,9 @@ public void test2() {
4442

4543
@Test
4644
public void test3() {
47-
root = TreeUtils.constructBinaryTree(Arrays.asList());
45+
root = TreeUtils.constructBinaryTree(Arrays.asList(0));
4846
TreeUtils.printBinaryTree(root);
49-
expected = 3;
47+
expected = 1;
5048
assertEquals(expected, solution1.countNodes(root));
5149
assertEquals(expected, solution2.countNodes(root));
5250
}

0 commit comments

Comments
 (0)