package de.fd.fh; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class FigureKingTest { // K = Position (19), x = gültig (10, 11, 12, 18, 20, 26, 27, 28), rest nicht // x x x // x K x // x x x @Test void checkInvalidKingMoves() { Figure f = new FigureKing(); for (int i = 0; i < 64; i++) { if (i != 10 && i != 11 && i != 12 && i != 18 && i != 20 && i != 26 && i != 27 && i != 28) { assertFalse(f.moveAllowed(19, i, new Figure[64])); } } } }