Browse Source

refactored figure test position (1. white farmer)

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

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

@ -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]));
}
}
Loading…
Cancel
Save