From 3c8a80091a6102216bd213b9f26c10f5a27dbb57 Mon Sep 17 00:00:00 2001 From: Peter Wiebe Date: Wed, 7 Feb 2024 10:27:13 +0100 Subject: [PATCH] test_buchstabe_im_zu_erratenden_wort 3 --- src/test/c/test_hangman_test.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/test/c/test_hangman_test.c b/src/test/c/test_hangman_test.c index 6f70048..f244008 100644 --- a/src/test/c/test_hangman_test.c +++ b/src/test/c/test_hangman_test.c @@ -35,4 +35,18 @@ void test_buchstabe_im_zu_erratenden_wort_eingabe_j_in_joe_richtig() { 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