From 37f32fef2bb247d51a08647b672bb624e73ad903 Mon Sep 17 00:00:00 2001 From: fdai7727 Date: Thu, 25 Jan 2024 21:07:11 +0100 Subject: [PATCH] =?UTF-8?q?Erweiterung=20des=20Testfall=20unterschiedliche?= =?UTF-8?q?r=20Buchstabe=20bei=20letterGuessed()=20um=20Gro=C3=9F-=20und?= =?UTF-8?q?=20Kleinschreibung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/c/Tim/test_hangman.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/test/c/Tim/test_hangman.c b/src/test/c/Tim/test_hangman.c index bfbe9c6..bc1048b 100644 --- a/src/test/c/Tim/test_hangman.c +++ b/src/test/c/Tim/test_hangman.c @@ -108,7 +108,7 @@ void test_letterGuessed_sameCaps_small() //assert TEST_ASSERT_TRUE(letterGuessed(x,y,length)); } -void test_letterGuessed_differentLetter() +void test_letterGuessed_differentLetter_small() { //arrange char x ='p'; @@ -117,6 +117,15 @@ void test_letterGuessed_differentLetter() //assert TEST_ASSERT_FALSE(letterGuessed(x,y,length)); } +void test_letterGuessed_differentLetter_big() +{ + //arrange + char x ='P'; + char y[] ="Kartoffel"; + int length = 9; + //assert + TEST_ASSERT_FALSE(letterGuessed(x,y,length)); +} void test_letterGuessed_sameCaps_big()