8
8
9
9
import java .util .Arrays ;
10
10
11
- import static org .junit .jupiter .api .Assertions .assertEquals ;
11
+ import static org .junit .jupiter .api .Assertions .* ;
12
12
13
13
public class _100Test {
14
14
private _100 .Solution1 solution1 ;
@@ -26,7 +26,7 @@ public void test1() {
26
26
TreeUtils .printBinaryTree (p );
27
27
q = TreeUtils .constructBinaryTree (Arrays .asList (1 , 2 , 3 ));
28
28
TreeUtils .printBinaryTree (p );
29
- assertEquals ( true , solution1 .isSameTree (p , q ));
29
+ assertTrue ( solution1 .isSameTree (p , q ));
30
30
}
31
31
32
32
@ Test
@@ -35,7 +35,7 @@ public void test2() {
35
35
TreeUtils .printBinaryTree (p );
36
36
q = TreeUtils .constructBinaryTree (Arrays .asList (1 , null , 2 ));
37
37
TreeUtils .printBinaryTree (p );
38
- assertEquals ( false , solution1 .isSameTree (p , q ));
38
+ assertFalse ( solution1 .isSameTree (p , q ));
39
39
}
40
40
41
41
@ Test
@@ -44,6 +44,6 @@ public void test3() {
44
44
TreeUtils .printBinaryTree (p );
45
45
q = TreeUtils .constructBinaryTree (Arrays .asList (1 , 1 , 2 ));
46
46
TreeUtils .printBinaryTree (p );
47
- assertEquals ( false , solution1 .isSameTree (p , q ));
47
+ assertFalse ( solution1 .isSameTree (p , q ));
48
48
}
49
49
}
0 commit comments