@ -4,6 +4,11 @@ public class Figure
{
public boolean moveAllowed(int src, int dst, int[] field)
if (field.length == 8*8)
return true;
}
return false;
@ -19,4 +19,11 @@ class FigureTest
Figure f = new Figure();
assertFalse(f.moveAllowed(0,0, new int[8*9]));
@Test
void checkMoveWithInvalidFieldCorrect() // Feldgröße sollte 8*8 betragen
assertTrue(f.moveAllowed(0,0, new int[8*8]));