File tree 1 file changed +31
-31
lines changed
src/test/java/com/fishercoder
1 file changed +31
-31
lines changed Original file line number Diff line number Diff line change 1
1
package com .fishercoder ;
2
2
3
3
import com .fishercoder .solutions ._64 ;
4
- import org .junit .BeforeClass ;
5
- import org .junit .Test ;
4
+ import org .junit .jupiter . api . BeforeEach ;
5
+ import org .junit .jupiter . api . Test ;
6
6
7
- import static org .junit .Assert .assertEquals ;
7
+ import static org .junit .jupiter . api . Assertions .assertEquals ;
8
8
9
9
public class _64Test {
10
- private static _64 .Solution1 solution1 ;
11
- private static int [][] grid ;
10
+ private static _64 .Solution1 solution1 ;
11
+ private static int [][] grid ;
12
12
13
- @ BeforeClass
14
- public static void setup () {
15
- solution1 = new _64 .Solution1 ();
16
- }
13
+ @ BeforeEach
14
+ public void setup () {
15
+ solution1 = new _64 .Solution1 ();
16
+ }
17
17
18
- @ Test
19
- public void test1 () {
20
- grid = new int [][] {
21
- {1 , 2 },
22
- {1 , 1 }
23
- };
24
- assertEquals (3 , solution1 .minPathSum (grid ));
25
- }
18
+ @ Test
19
+ public void test1 () {
20
+ grid = new int [][]{
21
+ {1 , 2 },
22
+ {1 , 1 }
23
+ };
24
+ assertEquals (3 , solution1 .minPathSum (grid ));
25
+ }
26
26
27
- @ Test
28
- public void test2 () {
29
- grid = new int [][] {{1 }};
30
- assertEquals (1 , solution1 .minPathSum (grid ));
31
- }
27
+ @ Test
28
+ public void test2 () {
29
+ grid = new int [][]{{1 }};
30
+ assertEquals (1 , solution1 .minPathSum (grid ));
31
+ }
32
32
33
- @ Test
34
- public void test3 () {
35
- grid = new int [][] {
36
- {1 , 3 , 1 },
37
- {1 , 5 , 1 },
38
- {4 , 2 , 1 }
39
- };
40
- assertEquals (7 , solution1 .minPathSum (grid ));
41
- }
33
+ @ Test
34
+ public void test3 () {
35
+ grid = new int [][]{
36
+ {1 , 3 , 1 },
37
+ {1 , 5 , 1 },
38
+ {4 , 2 , 1 }
39
+ };
40
+ assertEquals (7 , solution1 .minPathSum (grid ));
41
+ }
42
42
}
You can’t perform that action at this time.
0 commit comments