|
@ -40,4 +40,17 @@ void test_korrekteBerechnungDerArrayGroesse() { |
|
|
//assert |
|
|
//assert |
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_stringAbgleich(void){ |
|
|
|
|
|
// arrange |
|
|
|
|
|
char expectedMessage[] = "XXXXXXX"; |
|
|
|
|
|
|
|
|
|
|
|
// act |
|
|
|
|
|
char message[9]; |
|
|
|
|
|
befuellenDesArraysMitX(message, 8); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// assert |
|
|
|
|
|
TEST_ASSERT_EQUAL_STRING(expectedMessage, message); |
|
|
} |
|
|
} |