diff --git a/src/test/c/Jason/test_ASCII_art.c b/src/test/c/Jason/test_ASCII_art.c index 276e667..fb2d6c9 100644 --- a/src/test/c/Jason/test_ASCII_art.c +++ b/src/test/c/Jason/test_ASCII_art.c @@ -65,6 +65,21 @@ void test_stringAbgleichMitLeerzeichen(void){ 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 TEST_ASSERT_EQUAL_STRING(expectedMessage, message); } \ No newline at end of file