|
|
@ -119,3 +119,30 @@ void test_letterGuessed_sameCaps_big() |
|
|
|
TEST_ASSERT_TRUE(letterGuessed(x,y,length)); |
|
|
|
} |
|
|
|
|
|
|
|
void test_noTrysLeft_x_equals_POSSIBLE_TRYS() |
|
|
|
{ |
|
|
|
//arrange |
|
|
|
char x = POSSIBLE_TRYS; |
|
|
|
char y[] ="Kartoffel"; |
|
|
|
//assert |
|
|
|
TEST_ASSERT_TRUE(noTrysLeft(x, y)); |
|
|
|
} |
|
|
|
|
|
|
|
void test_noTrysLeft_x_lower_POSSIBLE_TRYS() |
|
|
|
{ |
|
|
|
//arrange |
|
|
|
char x = POSSIBLE_TRYS-2; |
|
|
|
char y[] ="Kartoffel"; |
|
|
|
//assert |
|
|
|
TEST_ASSERT_FALSE(noTrysLeft(x, y)); |
|
|
|
} |
|
|
|
|
|
|
|
void test_noTrysLeft_x_higher_POSSIBLE_TRYS() |
|
|
|
{ |
|
|
|
//arrange |
|
|
|
char x = POSSIBLE_TRYS+2; |
|
|
|
char y[] ="Kartoffel"; |
|
|
|
//assert |
|
|
|
TEST_ASSERT_TRUE(noTrysLeft(x, y)); |
|
|
|
} |
|
|
|
|