#ifdef TEST #include "unity.h" #include "schach.h" void setUp(void) { } void tearDown(void) { } void test_print_Schachfeld(void){ /* arrange */ char expected = 'S'; int x = 8; int y = 8; /* act */ char** Spielfeld = create_Schachfeld(x, y); /* assert */ TEST_ASSERT_EQUAL_CHAR(expected,Spielfeld[0][7]); TEST_ASSERT_EQUAL_CHAR(expected,Spielfeld[1][0]); } #endif // TEST