Add extra test class with "tests" for own needed applications like solving riddle in games

This commit is contained in:
2022-02-13 22:46:11 +01:00
parent 1842ade5c0
commit f9a4040946
2 changed files with 55 additions and 24 deletions

View File

@ -51,28 +51,4 @@ class IterativeDeepeningTest
printSolution(actual);
}
@Test
void shouldReturnCorrectTargetLabyrinthine()
{
final boolean[][] state = {
{true, false, true},
{false, true, false},
{true, false, true}
};
final var root = new LabyrinthineNode(state);
final boolean[][] targetState = {
{true, true, true},
{true, true, true},
{true, true, true},
};
final var expected = new LabyrinthineNode(targetState);
final var actual = new IterativeDeepening().iterativeDeepening(root, expected);
printSolution(actual);
}
}