|
@ -166,6 +166,21 @@ void test_x_wins_onIndex_20_21_22(void) |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_x_wins_onIndex_00_11_22(void) |
|
|
|
|
|
{ |
|
|
|
|
|
/* arrange */ |
|
|
|
|
|
int actual; |
|
|
|
|
|
int expected = 1; |
|
|
|
|
|
|
|
|
|
|
|
char board[][3] = {{'X',' ',' '}, {' ','X',' '}, {' ',' ','X'}}; |
|
|
|
|
|
|
|
|
|
|
|
/* act */ |
|
|
|
|
|
actual = x_wins_00_11_22(board); |
|
|
|
|
|
|
|
|
|
|
|
/* assert */ |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void test_stringLaenge_von_Kokosnuss(void) |
|
|
void test_stringLaenge_von_Kokosnuss(void) |
|
|
{ |
|
|
{ |
|
|
/* arrange */ |
|
|
/* arrange */ |
|
|