From f82781daaaeee0f7068811910ad368a671b96b08 Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Tue, 6 Feb 2024 09:30:08 +0100 Subject: [PATCH] =?UTF-8?q?test=20ob=20Stammarray=20vom=20Baum=20korrekt?= =?UTF-8?q?=20bef=C3=BCllt=20wird?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/c/Jason/test_ASCII_art.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/test/c/Jason/test_ASCII_art.c b/src/test/c/Jason/test_ASCII_art.c index 3c13a2d..52a5894 100644 --- a/src/test/c/Jason/test_ASCII_art.c +++ b/src/test/c/Jason/test_ASCII_art.c @@ -162,6 +162,21 @@ void test_wirdKleinesBaumkroneKorrektBefuelld(void){ befuellenDesWeihnachtsbaumsMitZeilenumbruechen(message, 3, 4); + // assert + TEST_ASSERT_EQUAL_STRING(expectedMessage, message); +} + +void test_wirdBaumstammAnRichtigerStelleEingestz(void){ + // arrange + char expectedMessage[] = " + "; + + // act + char message[7]; + + befuellenDesStammarraysMitLeerzeichen(message, 6); + stammAnRichtigerStelleEinsetzen(message, 6); + + // assert TEST_ASSERT_EQUAL_STRING(expectedMessage, message); } \ No newline at end of file