Browse Source

test_Laeufer, neuer Testfall, Hendrik Voß

remotes/origin/Spracharbeit
fdai7723 11 months ago
parent
commit
c137338294
  1. 1
      test/test_Laeufer.c

1
test/test_Laeufer.c

@ -40,6 +40,7 @@ void test_Laeufer_Weg_frei(void){
Player player = PLAYER_WHITE; Player player = PLAYER_WHITE;
brett[2][2] = 'P'; brett[2][2] = 'P';
assert(istzugerlaubt_Laeufer(brett, 1, 1, 3, 3, player)==false); assert(istzugerlaubt_Laeufer(brett, 1, 1, 3, 3, player)==false);
assert(istzugerlaubt_Laeufer(brett, 3, 3, 6, 6, player)==true);
for (int i = 0; i < 8; i++) { for (int i = 0; i < 8; i++) {
free(brett[i]); free(brett[i]);
} }

Loading…
Cancel
Save