|
@ -36,4 +36,17 @@ void test_getWordFromList_Kleiderschrank_5() |
|
|
strcpy(actualResult,getWordFromList(pos)); |
|
|
strcpy(actualResult,getWordFromList(pos)); |
|
|
//assert |
|
|
//assert |
|
|
TEST_ASSERT_EQUAL_STRING(expectedResult, actualResult); |
|
|
TEST_ASSERT_EQUAL_STRING(expectedResult, actualResult); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void test_getWordFromList_IndexOutOfList() |
|
|
|
|
|
{ |
|
|
|
|
|
//arrange |
|
|
|
|
|
int pos = 15; |
|
|
|
|
|
char expectedResult[] = "Index nicht vorhanden"; |
|
|
|
|
|
//act |
|
|
|
|
|
char actualResult[30]; |
|
|
|
|
|
strcpy(actualResult,getWordFromList(pos)); |
|
|
|
|
|
//assert |
|
|
|
|
|
TEST_ASSERT_EQUAL_STRING(expectedResult, actualResult); |
|
|
} |
|
|
} |