Fixing broken test case

This commit is contained in:
Imbus 2023-12-11 16:06:50 +01:00
parent 5bf0c92d10
commit ffd1d4bd51

View file

@ -34,7 +34,8 @@ class SolverTest {
assertTrue(solver.isLegal(0, 0, 1));
solver.set(0, 0, 1);
IntStream.range(0, 9).forEach(i -> {
// Start from one, since setting the same value is legal
IntStream.range(1, 9).forEach(i -> {
assertFalse(solver.isLegal(0, i, 1));
assertFalse(solver.isLegal(i, 0, 1));
});