File tree Expand file tree Collapse file tree 1 file changed +31
-31
lines changed
src/test/java/com/fishercoder Expand file tree Collapse file tree 1 file changed +31
-31
lines changed Original file line number Diff line number Diff line change 7
7
import static org .junit .Assert .assertEquals ;
8
8
9
9
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 ;
12
12
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
+ }
17
17
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
+ }
27
27
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
+ }
37
37
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
+ }
45
45
}
You can’t perform that action at this time.
0 commit comments