Skip to content

Commit 16e48b7

Browse files
committed
Apply clang-format
1 parent 2acd744 commit 16e48b7

File tree

1 file changed

+9
-29
lines changed

1 file changed

+9
-29
lines changed
Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,26 @@
11
package com.thealgorithms.matrix;
2-
32
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
4-
53
import org.junit.jupiter.api.Test;
64

7-
class SpiralMatrixIITest {
5+
class SpiralMatrixTest {
86

9-
private final SpiralMatrixII spiral = new SpiralMatrixII();
10-
11-
@Test
12-
void testNEquals1() {
13-
int[][] expected = {{1}};
14-
assertArrayEquals(expected, spiral.generateMatrix(1));
15-
}
7+
SpiralMatrix spiral = new SpiralMatrix();
168

179
@Test
1810
void testNEquals3() {
19-
int[][] expected = {
20-
{1, 2, 3},
21-
{8, 9, 4},
22-
{7, 6, 5}
23-
};
11+
int[][] expected = {{1, 2, 3}, {8, 9, 4}, {7, 6, 5}};
2412
assertArrayEquals(expected, spiral.generateMatrix(3));
2513
}
2614

2715
@Test
2816
void testNEquals4() {
29-
int[][] expected = {
30-
{1, 2, 3, 4},
31-
{12, 13, 14, 5},
32-
{11, 16, 15, 6},
33-
{10, 9, 8, 7}
34-
};
17+
int[][] expected = {{1, 2, 3, 4}, {12, 13, 14, 5}, {11, 16, 15, 6}, {10, 9, 8, 7}};
3518
assertArrayEquals(expected, spiral.generateMatrix(4));
3619
}
37-
@Test
38-
void testNEquals2() {
39-
int[][] expected = {
40-
{1, 2},
41-
{4, 3}
42-
};
43-
assertArrayEquals(expected, spiral.generateMatrix(2));
44-
}
4520

21+
@Test
22+
void testNEquals2() {
23+
int[][] expected = {{1, 2}, {4, 3}};
24+
assertArrayEquals(expected, spiral.generateMatrix(2));
25+
}
4626
}

0 commit comments

Comments
 (0)