|
|
@ -51,6 +51,20 @@ void test_stringAbgleich(void){ |
|
|
|
befuellenDesArraysMitX(message, 8); |
|
|
|
|
|
|
|
|
|
|
|
// assert |
|
|
|
TEST_ASSERT_EQUAL_STRING(expectedMessage, message); |
|
|
|
} |
|
|
|
|
|
|
|
void test_stringAbgleichMitLeerzeichen(void){ |
|
|
|
// arrange |
|
|
|
char expectedMessage[] = "X X X X X X X X X"; |
|
|
|
|
|
|
|
// act |
|
|
|
char message[19]; |
|
|
|
befuellenDesArraysMitX(message, 18); |
|
|
|
befuelleArrayMitLeerzeichen(message, 18); |
|
|
|
|
|
|
|
|
|
|
|
// assert |
|
|
|
TEST_ASSERT_EQUAL_STRING(expectedMessage, message); |
|
|
|
} |