Browse Source

figure movement: valid step (width: 1)

feat-figureMovement
JD 4 years ago
parent
commit
9087d986c5
  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

@ -33,4 +33,11 @@ class FigureTest
Figure f = new Figure(); Figure f = new Figure();
assertFalse(f.moveAllowed(48,48, new int[Figure.fieldSize])); assertFalse(f.moveAllowed(48,48, new int[Figure.fieldSize]));
} }
@Test
void checkMoveWithValidDestination()
{
Figure f = new Figure();
assertTrue(f.moveAllowed(48,40, new int[Figure.fieldSize]));
}
} }
Loading…
Cancel
Save