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