Browse Source

Erweiterung des Testfall unterschiedlicher Buchstabe bei letterGuessed() um Groß- und Kleinschreibung

remotes/origin/tim
fdai7727 11 months ago
parent
commit
37f32fef2b
  1. 11
      src/test/c/Tim/test_hangman.c

11
src/test/c/Tim/test_hangman.c

@ -108,7 +108,7 @@ void test_letterGuessed_sameCaps_small()
//assert //assert
TEST_ASSERT_TRUE(letterGuessed(x,y,length)); TEST_ASSERT_TRUE(letterGuessed(x,y,length));
} }
void test_letterGuessed_differentLetter()
void test_letterGuessed_differentLetter_small()
{ {
//arrange //arrange
char x ='p'; char x ='p';
@ -117,6 +117,15 @@ void test_letterGuessed_differentLetter()
//assert //assert
TEST_ASSERT_FALSE(letterGuessed(x,y,length)); 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() void test_letterGuessed_sameCaps_big()

Loading…
Cancel
Save