From d4ac80ef5cab34da12fc8e19ec0230434d581da4 Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Mon, 5 Feb 2024 16:15:49 +0100 Subject: [PATCH] test auf korrekte Berechnung des Dreieckarrays --- 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 5f88ae5..bac784c 100644 --- a/src/test/c/Jason/test_ASCII_art.c +++ b/src/test/c/Jason/test_ASCII_art.c @@ -103,5 +103,16 @@ void test_korrekteBerechnungAufMaximaleBreiteWeihnachtsbaum() { int actualResult = max_breite(6); //assert + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); +} + +void test_korrekteBerechnungAufMaximaleGroesseDesDreieck() { + //arrange + int expectedResult = 65; + + //act + int actualResult = berechnungDerDreieckArraygroesse(10); + //assert + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); } \ No newline at end of file