|
@ -108,6 +108,16 @@ 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() |
|
|
|
|
|
{ |
|
|
|
|
|
//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() |
|
|
{ |
|
|
{ |
|
|