Skip to content

Commit a434960

Browse files
refactor 994
1 parent bbc0781 commit a434960

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

src/test/java/com/fishercoder/_994Test.java

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,39 @@
77
import static org.junit.Assert.assertEquals;
88

99
public class _994Test {
10-
private static _994.Solution1 solution1;
11-
private static int[][] grid;
10+
private static _994.Solution1 solution1;
11+
private static int[][] grid;
1212

13-
@BeforeClass
14-
public static void setUp() {
15-
solution1 = new _994.Solution1();
16-
}
13+
@BeforeClass
14+
public static void setUp() {
15+
solution1 = new _994.Solution1();
16+
}
1717

18-
@Test
19-
public void test1() {
20-
grid = new int[][] {
21-
{2, 1, 1},
22-
{1, 1, 0},
23-
{0, 1, 1}
24-
};
25-
assertEquals(4, solution1.orangesRotting(grid));
26-
}
18+
@Test
19+
public void test1() {
20+
grid = new int[][]{
21+
{2, 1, 1},
22+
{1, 1, 0},
23+
{0, 1, 1}
24+
};
25+
assertEquals(4, solution1.orangesRotting(grid));
26+
}
2727

28-
@Test
29-
public void test2() {
30-
grid = new int[][] {
31-
{2, 1, 1},
32-
{0, 1, 1},
33-
{1, 0, 1}
34-
};
35-
assertEquals(-1, solution1.orangesRotting(grid));
36-
}
28+
@Test
29+
public void test2() {
30+
grid = new int[][]{
31+
{2, 1, 1},
32+
{0, 1, 1},
33+
{1, 0, 1}
34+
};
35+
assertEquals(-1, solution1.orangesRotting(grid));
36+
}
3737

38-
@Test
39-
public void test3() {
40-
grid = new int[][] {
41-
{0, 2}
42-
};
43-
assertEquals(0, solution1.orangesRotting(grid));
44-
}
38+
@Test
39+
public void test3() {
40+
grid = new int[][]{
41+
{0, 2}
42+
};
43+
assertEquals(0, solution1.orangesRotting(grid));
44+
}
4545
}

0 commit comments

Comments
 (0)