From 03a793ed78831f3f4b84f00165b01702e45ad1e0 Mon Sep 17 00:00:00 2001 From: Peter Wiebe Date: Wed, 7 Feb 2024 10:32:22 +0100 Subject: [PATCH] test_erratene_buchstaben_hinzufuegen 3 --- src/test/c/test_hangman_test.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test/c/test_hangman_test.c b/src/test/c/test_hangman_test.c index 98308e8..aade409 100644 --- a/src/test/c/test_hangman_test.c +++ b/src/test/c/test_hangman_test.c @@ -89,4 +89,17 @@ void test_erratenen_buchstaben_hinzufuegen_anhaengen_r_an_pete_zu_peter_richtig( TEST_ASSERT_EQUAL_STRING(expected, actual); } +void test_erratenen_buchstaben_hinzufuegen_anhaengen_r_an_peter_zu_peter_falsch() { + // arrange + char expected[100] = "peter"; + char actual[100] = "peter"; + char to_add = 'r'; + + // act + erratenen_buchstaben_hinzufuegen(actual, to_add); + + // assert + TEST_ASSERT_FALSE(expected == actual); +} + #endif // TEST