#ifdef TEST #include "unity.h" #include "schach.h" #include "string.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[5][0]); TEST_ASSERT_EQUAL_CHAR(expected,Spielfeld[4][3]); } void test_print_Schachfeld_Turm_weiss(void){ /* arrange */ char expected = 'T'; int x = 8; int y = 8; /* act */ char** Spielfeld = create_Schachfeld(x, y); /* assert */ TEST_ASSERT_EQUAL_CHAR(expected,Spielfeld[0][0]); TEST_ASSERT_EQUAL_CHAR(expected,Spielfeld[0][7]); } void test_print_Schachfeld_Bauern_weiss(void){ /* arrange */ char expected = 'B'; int x = 8; int y = 8; /* act */ char** Spielfeld = create_Schachfeld(x, y); /* assert */ for(int l = 0;l