Skip to content

Commit ebd0e7f

Browse files
committed
Fix
1 parent 414f83a commit ebd0e7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ public class CrosswordSolverTest {
1212

1313
@Test
1414
public void testValidPlacement() {
15-
char[][] puzzle = {{' ', ' ', ' '}, {' ', ' ', ' '}, {' ', ' ', ' '}};
15+
char[][] puzzle = {{' ', ' ', ' '}, {' ', ' ', ' '}, {' ', ' ', ' '}};
1616
assertTrue(CrosswordSolver.isValid(puzzle, "cat", 0, 0, true));
1717
assertTrue(CrosswordSolver.isValid(puzzle, "dog", 0, 0, false));
1818
assertFalse(CrosswordSolver.isValid(puzzle, "cat", 1, 2, false));
1919
}
2020

2121
@Test
2222
public void testPlaceAndRemoveWord() {
23-
char[][] puzzle = {{' ', ' ', ' '}, {' ', ' ', ' '}, {' ', ' ', ' '}};
23+
char[][] puzzle = {{' ', ' ', ' '}, {' ', ' ', ' '}, {' ', ' ', ' '}};
2424
CrosswordSolver.placeWord(puzzle, "cat", 0, 0, true);
2525
assertEquals('c', puzzle[0][0]);
2626
assertEquals('a', puzzle[1][0]);
@@ -34,7 +34,7 @@ public void testPlaceAndRemoveWord() {
3434

3535
@Test
3636
public void testSolveCrossword() {
37-
char[][] puzzle = {{' ', ' ', ' '}, {' ', ' ', ' '}, {' ', ' ', ' '}};
37+
char[][] puzzle = {{' ', ' ', ' '}, {' ', ' ', ' '}, {' ', ' ', ' '}};
3838
List<String> words = Arrays.asList("cat", "dog", "car");
3939
assertTrue(CrosswordSolver.solveCrossword(puzzle, words));
4040

@@ -59,7 +59,7 @@ public void testSolveCrossword() {
5959

6060
@Test
6161
public void testNoSolution() {
62-
char[][] puzzle = {{' ', ' ', ' '}, {' ', ' ', ' '}, {' ', ' ', ' '}};
62+
char[][] puzzle = {{' ', ' ', ' '}, {' ', ' ', ' '}, {' ', ' ', ' '}};
6363
List<String> words = Arrays.asList("cat", "dog", "elephant"); // 'elephant' is too long for the grid
6464
assertFalse(CrosswordSolver.solveCrossword(puzzle, words));
6565
}

0 commit comments

Comments
 (0)