|
@ -65,6 +65,21 @@ void test_stringAbgleichMitLeerzeichen(void){ |
|
|
befuelleArrayMitLeerzeichen(message, 18); |
|
|
befuelleArrayMitLeerzeichen(message, 18); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// assert |
|
|
|
|
|
TEST_ASSERT_EQUAL_STRING(expectedMessage, message); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_stringAbgleichMitLeerzeichenUndZeilenumbruch(void){ |
|
|
|
|
|
// arrange |
|
|
|
|
|
char expectedMessage[] = "X X X\nX X X\nX X X"; |
|
|
|
|
|
|
|
|
|
|
|
// act |
|
|
|
|
|
char message[19]; |
|
|
|
|
|
befuellenDesArraysMitX(message, 18); |
|
|
|
|
|
befuelleArrayMitLeerzeichen(message, 18); |
|
|
|
|
|
befuelleArrayMitZeilenumbruechen(message, 3); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// assert |
|
|
// assert |
|
|
TEST_ASSERT_EQUAL_STRING(expectedMessage, message); |
|
|
TEST_ASSERT_EQUAL_STRING(expectedMessage, message); |
|
|
} |
|
|
} |