88
99import java .util .Arrays ;
1010
11- import static org .junit .jupiter .api .Assertions .assertEquals ;
11+ import static org .junit .jupiter .api .Assertions .* ;
1212
1313public 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