Skip to content

Commit ad8c02c

Browse files
committedSep 15, 2021
add a solution for 566
1 parent 6854625 commit ad8c02c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/test/java/com/fishercoder/_566Test.java

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212
public class _566Test {
1313
private static _566.Solution1 solution1;
14+
private static _566.Solution2 solution2;
1415
private static int[][] expected;
1516
private static int[][] actual;
1617
private static int[][] nums;
@@ -20,6 +21,7 @@ public class _566Test {
2021
@BeforeClass
2122
public static void setup() {
2223
solution1 = new _566.Solution1();
24+
solution2 = new _566.Solution2();
2325
}
2426

2527
@Test
@@ -33,5 +35,7 @@ public void test1() {
3335
expected = new int[][]{{1, 2, 3, 4}};
3436
actual = solution1.matrixReshape(nums, r, c);
3537
assertArrayEquals(expected, actual);
38+
actual = solution2.matrixReshape(nums, r, c);
39+
assertArrayEquals(expected, actual);
3640
}
3741
}

0 commit comments

Comments
 (0)