Browse Source

refactoring: removed magic numbers

feat-figureMovement
JD 4 years ago
parent
commit
0ac4d17999
  1. 7
      fh.fd.ci.client/src/test/java/de/fd/fh/FigureBishopTest.java

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

@ -23,7 +23,10 @@ class FigureBishopTest
{ {
Figure f = new FigureBishop(); Figure f = new FigureBishop();
assertFalse(f.moveAllowed(45, 46,
new Figure[64]));
int src = Figure.fieldLength * 5 + 5;
int dst = src + 1;
assertFalse(f.moveAllowed(src, dst,
new Figure[Figure.fieldLength * Figure.fieldLength]));
} }
} }
Loading…
Cancel
Save