You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
583 B

#ifdef TEST
#include "unity.h"
#include "Schachbrett.h"
#include "Spieler.h"
#include "Dame.h"
#include <stdlib.h>
void test_Dame_Falsche_Bewegung(void) {
char** brett = Schachbrett_erstellen();
int startX = 3;
int startY = 0;
int endX = 3;
int endY = 4;
Player player = PLAYER_WHITE;
TEST_ASSERT_NOT_NULL(brett);
print_Schachfeld(brett);
TEST_ASSERT_FALSE(istzugerlaubt_Dame( brett, startX, startY, endX, endY, player));
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}
#endif // TEST