diff --git a/src/test/c/test_hangman_test.c b/src/test/c/test_hangman_test.c index f244008..a092ee3 100644 --- a/src/test/c/test_hangman_test.c +++ b/src/test/c/test_hangman_test.c @@ -49,4 +49,18 @@ void test_buchstabe_im_zu_erratenden_wort_eingabe_k_in_joe_falsch() { TEST_ASSERT_EQUAL_INT(expected, actual); } +void test_buchstabe_im_zu_erratenden_wort_eingabe_j_in_eoj_richtig() { + // arrange + int expected = 0; + int actual; + char guessed_letter = 'j'; + char secret_word[100] = "eoj"; + + // act + actual = buchstabe_im_zu_erratenden_wort(guessed_letter, secret_word); + + // assert + TEST_ASSERT_EQUAL_INT(expected, actual); +} + #endif // TEST