#ifdef TEST #include "unity.h" #include "Schachbrett.h" #include "Moving.h" #include "Spieler.h" void setUp(void) { } void tearDown(void) { } void test_Bauern_bewegen(void) { char** brett = Schachbrett_erstellen(); int startX = 0; int startY = 1; int endX = 0; int endY = 2; Player player = PLAYER_WHITE; TEST_ASSERT_NOT_NULL(brett); machezug( brett, startX, startY, endX, endY, player); TEST_ASSERT_EQUAL('P', brett[0][2]); TEST_ASSERT_EQUAL(' ', brett[0][1]); for (int i = 0; i < 8; i++) { free(brett[i]); } free(brett); } #endif // TEST