Adjusted few things to all

This commit is contained in:
Niklas Birk
2019-06-25 12:06:39 +02:00
parent e09b6fb6e4
commit 5264853c8e
4 changed files with 1 additions and 31 deletions

View File

@ -6,30 +6,6 @@ import search.EightPuzzleNode;
class EightPuzzleNodeTest
{
@Test
public void shouldThrowExceptionWhileStateHasDuplicateNumbers()
{
final int[][] state = {
{1, 1, 3},
{4, 5, 6},
{7, 8, 0}
};
Assertions.assertThrows(IllegalArgumentException.class, () -> new EightPuzzleNode(state));
}
@Test
public void shouldThrowExceptionWhileStateHasNumbersOutOfRange()
{
final int[][] state = {
{1, 2, 3},
{4, 5, 6},
{7, 8, 9}
};
Assertions.assertThrows(IllegalArgumentException.class, () -> new EightPuzzleNode(state));
}
@Test
public void shouldReturnTrueWhenTargetReached()
{