Skip to content

Commit 77890cd

Browse files
committed
Added test case to sudoku
1 parent ffa3f19 commit 77890cd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/test/java/com/thealgorithms/others/SudokuTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
import static org.junit.jupiter.api.Assertions.assertTrue;
44
import static org.junit.jupiter.api.Assertions.assertFalse;
5+
56
import org.junit.jupiter.api.Test;
67

78
public class SudokuTest {
89

910
@Test
1011
public void testSolvableSudoku() {
11-
int[][] board = new int[][]{
12+
int[][] board = new int[][] {
1213
{3, 0, 6, 5, 0, 8, 4, 0, 0},
1314
{5, 2, 0, 0, 0, 0, 0, 0, 0},
1415
{0, 8, 7, 0, 0, 0, 0, 3, 1},
@@ -25,7 +26,7 @@ public void testSolvableSudoku() {
2526

2627
@Test
2728
public void testUnsolvableSudoku() {
28-
int[][] board = new int[][]{
29+
int[][] board = new int[][] {
2930
{3, 0, 6, 5, 0, 8, 4, 0, 0},
3031
{5, 2, 1, 0, 0, 0, 0, 0, 0},
3132
{9, 8, 7, 0, 0, 0, 0, 3, 1},
@@ -42,7 +43,7 @@ public void testUnsolvableSudoku() {
4243

4344
@Test
4445
public void testEmptySudoku() {
45-
int[][] board = new int[][]{
46+
int[][] board = new int[][] {
4647
{0, 0, 0, 0, 0, 0, 0, 0, 0},
4748
{0, 0, 0, 0, 0, 0, 0, 0, 0},
4849
{0, 0, 0, 0, 0, 0, 0, 0, 0},
@@ -59,7 +60,7 @@ public void testEmptySudoku() {
5960

6061
@Test
6162
public void testAlreadySolvedSudoku() {
62-
int[][] board = new int[][]{
63+
int[][] board = new int[][] {
6364
{5, 3, 4, 6, 7, 8, 9, 1, 2},
6465
{6, 7, 2, 1, 9, 5, 3, 4, 8},
6566
{1, 9, 8, 3, 4, 2, 5, 6, 7},

0 commit comments

Comments
 (0)