|
@ -47,4 +47,11 @@ class FigureTest |
|
|
Figure f = new Figure(); |
|
|
Figure f = new Figure(); |
|
|
assertFalse(f.moveAllowed(Figure.fieldLength * 6 + 0, Figure.fieldLength * 7 + 0, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
assertFalse(f.moveAllowed(Figure.fieldLength * 6 + 0, Figure.fieldLength * 7 + 0, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void whiteFarmerInvalidDestinationUp() // mehr als 1 Schritt nach "oben" |
|
|
|
|
|
{ |
|
|
|
|
|
Figure f = new Figure(); |
|
|
|
|
|
assertFalse(f.moveAllowed(Figure.fieldLength * 6 + 0, Figure.fieldLength * 4 + 0, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
|
|
|
} |
|
|
} |
|
|
} |