Skip to content

Commit b61d906

Browse files
update 100 test
1 parent 41b4abe commit b61d906

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/test/java/com/fishercoder/firstthousand/_100Test.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import java.util.Arrays;
1010

11-
import static org.junit.jupiter.api.Assertions.assertEquals;
11+
import static org.junit.jupiter.api.Assertions.*;
1212

1313
public class _100Test {
1414
private _100.Solution1 solution1;
@@ -26,7 +26,7 @@ public void test1() {
2626
TreeUtils.printBinaryTree(p);
2727
q = TreeUtils.constructBinaryTree(Arrays.asList(1, 2, 3));
2828
TreeUtils.printBinaryTree(p);
29-
assertEquals(true, solution1.isSameTree(p, q));
29+
assertTrue(solution1.isSameTree(p, q));
3030
}
3131

3232
@Test
@@ -35,7 +35,7 @@ public void test2() {
3535
TreeUtils.printBinaryTree(p);
3636
q = TreeUtils.constructBinaryTree(Arrays.asList(1, null, 2));
3737
TreeUtils.printBinaryTree(p);
38-
assertEquals(false, solution1.isSameTree(p, q));
38+
assertFalse(solution1.isSameTree(p, q));
3939
}
4040

4141
@Test
@@ -44,6 +44,6 @@ public void test3() {
4444
TreeUtils.printBinaryTree(p);
4545
q = TreeUtils.constructBinaryTree(Arrays.asList(1, 1, 2));
4646
TreeUtils.printBinaryTree(p);
47-
assertEquals(false, solution1.isSameTree(p, q));
47+
assertFalse(solution1.isSameTree(p, q));
4848
}
4949
}

0 commit comments

Comments
 (0)