Browse Source

test_buchstabe_im_zu_erratenden_wort 2

remotes/origin/peter^2
Peter Wiebe 11 months ago
parent
commit
16403a8a6f
  1. 14
      src/test/c/test_hangman_test.c

14
src/test/c/test_hangman_test.c

@ -21,4 +21,18 @@ void test_buchstabe_im_zu_erratenden_wort_eingabe_j_in_leerstring_falsch() {
TEST_ASSERT_EQUAL_INT(expected, actual);
}
void test_buchstabe_im_zu_erratenden_wort_eingabe_j_in_joe_richtig() {
// arrange
int expected = 0;
int actual;
char guessed_letter = 'j';
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
Loading…
Cancel
Save