From 9ff6833eea10c2234df50c967dc10838f3a97c9e Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Wed, 31 Jan 2024 15:07:55 +0100 Subject: [PATCH] Test ob Leerzeichen mit 3er Quadrat korrekt gesetzt werden --- src/test/c/Jason/test_ASCII_art.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/test/c/Jason/test_ASCII_art.c b/src/test/c/Jason/test_ASCII_art.c index 5edde35..276e667 100644 --- a/src/test/c/Jason/test_ASCII_art.c +++ b/src/test/c/Jason/test_ASCII_art.c @@ -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); } \ No newline at end of file