|
@ -40,4 +40,11 @@ class FigureTest |
|
|
Figure f = new Figure(); |
|
|
Figure f = new Figure(); |
|
|
assertTrue(f.moveAllowed(48,40, new int[Figure.fieldSize])); |
|
|
assertTrue(f.moveAllowed(48,40, new int[Figure.fieldSize])); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void whiteFarmerInvalidDestinationDown() // statt nach "oben" wird nach "unten" gegangen |
|
|
|
|
|
{ |
|
|
|
|
|
Figure f = new Figure(); |
|
|
|
|
|
assertFalse(f.moveAllowed(48,56, new int[Figure.fieldSize])); |
|
|
|
|
|
} |
|
|
} |
|
|
} |