|
@ -40,7 +40,18 @@ void test_getWordFromList_Kleiderschrank_5() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void test_getWordFromList_IndexOutOfList() |
|
|
|
|
|
|
|
|
void test_getWordFromList_Index_lower_Listsize() |
|
|
|
|
|
{ |
|
|
|
|
|
//arrange |
|
|
|
|
|
int pos = -5; |
|
|
|
|
|
char expectedResult[] = "Index nicht vorhanden"; |
|
|
|
|
|
//act |
|
|
|
|
|
char actualResult[30]; |
|
|
|
|
|
strcpy(actualResult,getWordFromList(pos)); |
|
|
|
|
|
//assert |
|
|
|
|
|
TEST_ASSERT_EQUAL_STRING(expectedResult, actualResult); |
|
|
|
|
|
} |
|
|
|
|
|
void test_getWordFromList_Index_higher_Listsize() |
|
|
{ |
|
|
{ |
|
|
//arrange |
|
|
//arrange |
|
|
int pos = LISTSIZE+1; |
|
|
int pos = LISTSIZE+1; |
|
@ -52,6 +63,7 @@ void test_getWordFromList_IndexOutOfList() |
|
|
TEST_ASSERT_EQUAL_STRING(expectedResult, actualResult); |
|
|
TEST_ASSERT_EQUAL_STRING(expectedResult, actualResult); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void test_wonGame_wordGuessed() |
|
|
void test_wonGame_wordGuessed() |
|
|
{ |
|
|
{ |
|
|
//arrange |
|
|
//arrange |
|
|