Browse Source

test_erratene_buchstaben_hinzufuegen 1 richtigstellung

remotes/origin/peter^2
Peter Wiebe 11 months ago
parent
commit
bd85f32d84
  1. 4
      src/test/c/test_hangman_test.c

4
src/test/c/test_hangman_test.c

@ -63,14 +63,14 @@ void test_buchstabe_im_zu_erratenden_wort_eingabe_j_in_eoj_richtig() {
TEST_ASSERT_EQUAL_INT(expected, actual); TEST_ASSERT_EQUAL_INT(expected, actual);
} }
void test_erratene_buchstaben_hinzufuegen_anhaengen_r_an_leerstring_zu_peter_richtig() {
void test_erratenen_buchstaben_hinzufuegen_anhaengen_r_an_leerstring_zu_peter_richtig() {
// arrange // arrange
char expected[100] = "r"; char expected[100] = "r";
char actual[100] = ""; char actual[100] = "";
char to_add = 'r'; char to_add = 'r';
// act // act
erratene_buchstaben_hinzufuegen(actual, to_add);
erratenen_buchstaben_hinzufuegen(actual, to_add);
// assert // assert
TEST_ASSERT_EQUAL_STRING(expected, actual); TEST_ASSERT_EQUAL_STRING(expected, actual);

Loading…
Cancel
Save