|
@ -35,4 +35,18 @@ void test_buchstabe_im_zu_erratenden_wort_eingabe_j_in_joe_richtig() { |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_buchstabe_im_zu_erratenden_wort_eingabe_k_in_joe_falsch() { |
|
|
|
|
|
// arrange |
|
|
|
|
|
int expected = 1; |
|
|
|
|
|
int actual; |
|
|
|
|
|
char guessed_letter = 'k'; |
|
|
|
|
|
char secret_word[100] = "joe"; |
|
|
|
|
|
|
|
|
|
|
|
// act |
|
|
|
|
|
actual = buchstabe_im_zu_erratenden_wort(guessed_letter, secret_word); |
|
|
|
|
|
|
|
|
|
|
|
// assert |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endif // TEST |
|
|
#endif // TEST |