Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb61d906

Browse files
update 100 test
1 parent41b4abe commitb61d906

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
importjava.util.Arrays;
1010

11-
importstaticorg.junit.jupiter.api.Assertions.assertEquals;
11+
importstaticorg.junit.jupiter.api.Assertions.*;
1212

1313
publicclass_100Test {
1414
private_100.Solution1solution1;
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp