Browse Source

figure movement field check (bigger than expected)

feat-figureMovement
JD 4 years ago
parent
commit
5cd665a0cf
  1. 7
      fh.fd.ci.client/src/test/java/de/fd/fh/FigureTest.java

7
fh.fd.ci.client/src/test/java/de/fd/fh/FigureTest.java

@ -13,5 +13,10 @@ class FigureTest
assertFalse(f.moveAllowed(0,0, new int[0])); assertFalse(f.moveAllowed(0,0, new int[0]));
} }
@Test
void checkMoveWithInvalidFieldBigger() // Feldgröße sollte 8*8 betragen
{
Figure f = new Figure();
assertFalse(f.moveAllowed(0,0, new int[8*9]));
}
} }
Loading…
Cancel
Save