Skip to content

Commit 0d5a3ce

Browse files
committed
Made the "complex" test harder, forcing the algorithm to actually back-track ;)
1 parent 78616fc commit 0d5a3ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Backtracking/tests/RatInAMaze.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ describe('RatInAMaze', () => {
7070

7171
it('should work for a more complex maze that can not be solved', () => {
7272
const maze = new RatInAMaze([
73-
[1, 1, 1, 1, 1, 0, 0],
74-
[0, 0, 0, 0, 1, 0, 0],
75-
[1, 1, 1, 0, 1, 0, 0],
76-
[1, 0, 1, 0, 1, 0, 0],
77-
[1, 0, 1, 0, 1, 0, 0],
73+
[1, 1, 1, 1, 1, 0, 1],
74+
[0, 0, 0, 0, 1, 0, 1],
75+
[1, 1, 1, 0, 1, 0, 1],
76+
[1, 0, 1, 0, 1, 0, 1],
77+
[1, 0, 1, 0, 1, 1, 1],
7878
[1, 0, 0, 0, 0, 0, 0],
7979
[1, 1, 1, 1, 1, 1, 1]
8080
])

0 commit comments

Comments
 (0)