|
|
@ -17,13 +17,13 @@ class FigureTest |
|
|
|
void checkMoveWithInvalidFieldBigger() // Feldgröße sollte 8*8 betragen |
|
|
|
{ |
|
|
|
Figure f = new Figure(); |
|
|
|
assertFalse(f.moveAllowed(0,0, new int[8*9])); |
|
|
|
assertFalse(f.moveAllowed(48,40, new int[8*9])); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void checkMoveWithInvalidFieldCorrect() // Feldgröße sollte 8*8 betragen |
|
|
|
{ |
|
|
|
Figure f = new Figure(); |
|
|
|
assertTrue(f.moveAllowed(0,0, new int[Figure.fieldSize])); |
|
|
|
assertTrue(f.moveAllowed(48,40, new int[Figure.fieldSize])); |
|
|
|
} |
|
|
|
} |