Skip to content

Commit bf1002a

Browse files
committed
Remove test
1 parent 35b2bfc commit bf1002a

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/test/java/com/thealgorithms/backtracking/SudokuSolverTest.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,6 @@ void testForValidSudoku() {
3232
assertArrayEquals(expected, board);
3333
}
3434

35-
/**
36-
* Test case for unsolvable Sudoku puzzle.
37-
*/
38-
@Test
39-
void testForUnsolvableSudoku() {
40-
int[][] board = {{5, 3, 0, 0, 7, 0, 0, 0, 0}, {6, 0, 0, 1, 9, 5, 0, 0, 0}, {0, 9, 8, 0, 0, 0, 0, 6, 0}, {8, 0, 0, 0, 6, 0, 0, 0, 3}, {4, 0, 0, 8, 0, 3, 0, 0, 1}, {7, 0, 0, 0, 2, 0, 0, 0, 6}, {0, 6, 0, 0, 0, 0, 2, 8, 0}, {0, 0, 0, 4, 1, 9, 0, 0, 5}, {0, 0, 0, 0, 8, 0, 0, 7, 9}};
41-
42-
// Modify the puzzle to make it unsolvable (e.g., repeat numbers)
43-
board[0][0] = 5;
44-
45-
// Attempt to solve the unsolvable puzzle
46-
boolean solved = SudokuSolver.solveSudoku(board);
47-
48-
// Check that the puzzle is not solvable
49-
assertFalse(solved, "The Sudoku puzzle should be unsolvable.");
50-
}
51-
5235
/**
5336
* Test case for an already solved Sudoku puzzle.
5437
*/

0 commit comments

Comments
 (0)