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

src/test/java/com/fishercoder/firstthousand/_100Test.java

Lines changed: 4 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy