|
|
@ -102,4 +102,18 @@ void test_erratenen_buchstaben_hinzufuegen_anhaengen_r_an_peter_zu_peter_falsch( |
|
|
|
TEST_ASSERT_FALSE(expected == actual); |
|
|
|
} |
|
|
|
|
|
|
|
void test_gewonnen_petr_in_peter_richtig() { |
|
|
|
// arrange |
|
|
|
int expected = 1; |
|
|
|
char actual; |
|
|
|
char secret_word[100] = "peter"; |
|
|
|
char guessed_letters[100] = "petr"; |
|
|
|
|
|
|
|
// act |
|
|
|
actual = gewonnen(secret_word, guessed_letters); |
|
|
|
|
|
|
|
// assert |
|
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
|
} |
|
|
|
|
|
|
|
#endif // TEST |