|
|
@ -80,3 +80,46 @@ void test_wordGuessed_differentCaps() |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_letterGuessed_differentCaps_small_big() |
|
|
|
{ |
|
|
|
//arrange |
|
|
|
char x ='F'; |
|
|
|
char y[] ="Kartoffel"; |
|
|
|
int length = 9; |
|
|
|
char z[] ="_________"; |
|
|
|
//assert |
|
|
|
TEST_ASSERT_TRUE(letterGuessed(x,y,length,z)); |
|
|
|
} |
|
|
|
|
|
|
|
void test_letterGuessed_differentCaps_big_small() |
|
|
|
{ |
|
|
|
//arrange |
|
|
|
char x ='k'; |
|
|
|
char y[] ="Kartoffel"; |
|
|
|
int length = 9; |
|
|
|
char z[] ="_________"; |
|
|
|
//assert |
|
|
|
TEST_ASSERT_TRUE(letterGuessed(x,y,length,z)); |
|
|
|
} |
|
|
|
void test_letterGuessed_sameCaps_small() |
|
|
|
{ |
|
|
|
//arrange |
|
|
|
char x ='f'; |
|
|
|
char y[] ="Kartoffel"; |
|
|
|
int length = 9; |
|
|
|
char z[] ="_________"; |
|
|
|
//assert |
|
|
|
TEST_ASSERT_TRUE(letterGuessed(x,y,length,z)); |
|
|
|
} |
|
|
|
|
|
|
|
void test_letterGuessed_sameCaps_big() |
|
|
|
{ |
|
|
|
//arrange |
|
|
|
char x ='K'; |
|
|
|
char y[] ="Kartoffel"; |
|
|
|
int length = 9; |
|
|
|
char z[] ="_________"; |
|
|
|
//assert |
|
|
|
TEST_ASSERT_TRUE(letterGuessed(x,y,length,z)); |
|
|
|
} |
|
|
|
|