We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6854625 commit ad8c02cCopy full SHA for ad8c02c
src/test/java/com/fishercoder/_566Test.java
@@ -11,6 +11,7 @@
11
*/
12
public class _566Test {
13
private static _566.Solution1 solution1;
14
+ private static _566.Solution2 solution2;
15
private static int[][] expected;
16
private static int[][] actual;
17
private static int[][] nums;
@@ -20,6 +21,7 @@ public class _566Test {
20
21
@BeforeClass
22
public static void setup() {
23
solution1 = new _566.Solution1();
24
+ solution2 = new _566.Solution2();
25
}
26
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);
37
assertArrayEquals(expected, actual);
38
+ actual = solution2.matrixReshape(nums, r, c);
39
+ assertArrayEquals(expected, actual);
40
41
0 commit comments