|
@ -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() |
|
|