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.

48 lines
651 B

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