2
2
3
3
import static org .junit .jupiter .api .Assertions .assertTrue ;
4
4
import static org .junit .jupiter .api .Assertions .assertFalse ;
5
+
5
6
import org .junit .jupiter .api .Test ;
6
7
7
8
public class SudokuTest {
8
9
9
10
@ Test
10
11
public void testSolvableSudoku () {
11
- int [][] board = new int [][]{
12
+ int [][] board = new int [][] {
12
13
{3 , 0 , 6 , 5 , 0 , 8 , 4 , 0 , 0 },
13
14
{5 , 2 , 0 , 0 , 0 , 0 , 0 , 0 , 0 },
14
15
{0 , 8 , 7 , 0 , 0 , 0 , 0 , 3 , 1 },
@@ -25,7 +26,7 @@ public void testSolvableSudoku() {
25
26
26
27
@ Test
27
28
public void testUnsolvableSudoku () {
28
- int [][] board = new int [][]{
29
+ int [][] board = new int [][] {
29
30
{3 , 0 , 6 , 5 , 0 , 8 , 4 , 0 , 0 },
30
31
{5 , 2 , 1 , 0 , 0 , 0 , 0 , 0 , 0 },
31
32
{9 , 8 , 7 , 0 , 0 , 0 , 0 , 3 , 1 },
@@ -42,7 +43,7 @@ public void testUnsolvableSudoku() {
42
43
43
44
@ Test
44
45
public void testEmptySudoku () {
45
- int [][] board = new int [][]{
46
+ int [][] board = new int [][] {
46
47
{0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 },
47
48
{0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 },
48
49
{0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 },
@@ -59,7 +60,7 @@ public void testEmptySudoku() {
59
60
60
61
@ Test
61
62
public void testAlreadySolvedSudoku () {
62
- int [][] board = new int [][]{
63
+ int [][] board = new int [][] {
63
64
{5 , 3 , 4 , 6 , 7 , 8 , 9 , 1 , 2 },
64
65
{6 , 7 , 2 , 1 , 9 , 5 , 3 , 4 , 8 },
65
66
{1 , 9 , 8 , 3 , 4 , 2 , 5 , 6 , 7 },
0 commit comments