Skip to content

Commit 2acd744

Browse files
committed
Improve test coverage for Spiral Matrix II
1 parent d45d037 commit 2acd744

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/java/com/thealgorithms/matrix/SpiralMatrixIITest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,13 @@ void testNEquals4() {
3434
};
3535
assertArrayEquals(expected, spiral.generateMatrix(4));
3636
}
37+
@Test
38+
void testNEquals2() {
39+
int[][] expected = {
40+
{1, 2},
41+
{4, 3}
42+
};
43+
assertArrayEquals(expected, spiral.generateMatrix(2));
44+
}
45+
3746
}

0 commit comments

Comments
 (0)