File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/test/java/com/fishercoder Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11
11
*/
12
12
public class _566Test {
13
13
private static _566 .Solution1 solution1 ;
14
+ private static _566 .Solution2 solution2 ;
14
15
private static int [][] expected ;
15
16
private static int [][] actual ;
16
17
private static int [][] nums ;
@@ -20,6 +21,7 @@ public class _566Test {
20
21
@ BeforeClass
21
22
public static void setup () {
22
23
solution1 = new _566 .Solution1 ();
24
+ solution2 = new _566 .Solution2 ();
23
25
}
24
26
25
27
@ Test
@@ -33,5 +35,7 @@ public void test1() {
33
35
expected = new int [][]{{1 , 2 , 3 , 4 }};
34
36
actual = solution1 .matrixReshape (nums , r , c );
35
37
assertArrayEquals (expected , actual );
38
+ actual = solution2 .matrixReshape (nums , r , c );
39
+ assertArrayEquals (expected , actual );
36
40
}
37
41
}
You can’t perform that action at this time.
0 commit comments