|
|
@ -26,4 +26,11 @@ class FigureTest |
|
|
|
Figure f = new Figure(); |
|
|
|
assertTrue(f.moveAllowed(48,40, new int[Figure.fieldSize])); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void checkMoveWithoutNewDestination() |
|
|
|
{ |
|
|
|
Figure f = new Figure(); |
|
|
|
assertFalse(f.moveAllowed(48,48, new int[Figure.fieldSize])); |
|
|
|
} |
|
|
|
} |