From a52ea89772c5f35045dbec0ede34df2c95a8250d Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Thu, 1 Feb 2024 15:37:54 +0100 Subject: [PATCH] =?UTF-8?q?Test=20auf=20korrekte=20Berechnung=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/c/Jason/test_ASCII_art.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/c/Jason/test_ASCII_art.c b/src/test/c/Jason/test_ASCII_art.c index 8746052..bf29b8b 100644 --- a/src/test/c/Jason/test_ASCII_art.c +++ b/src/test/c/Jason/test_ASCII_art.c @@ -92,5 +92,16 @@ void test_erscheintDieAbfrageFuerWeihnachtsbaum() { int actualResult = abfrageDerHoehe(); //assert + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); +} + +void test_korrekteBerechnungAufMaximaleBreiteWeihnachtsbaum() { + //arrange + int expectedResult = 9; + + //act + int actualResult = max_breite(6); + //assert + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); } \ No newline at end of file