|
@ -106,4 +106,19 @@ void test_x_wins_onIndex_01_11_21(void) |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_stringLaenge_von_Kokosnuss(void) |
|
|
|
|
|
{ |
|
|
|
|
|
/* arrange */ |
|
|
|
|
|
int actual; |
|
|
|
|
|
int expected = 9; |
|
|
|
|
|
|
|
|
|
|
|
char string[] = "Kokosnuss"; |
|
|
|
|
|
|
|
|
|
|
|
/* act */ |
|
|
|
|
|
actual = string_character_counter(string); |
|
|
|
|
|
|
|
|
|
|
|
/* assert */ |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |