From 94486d7e2afa91acbf68a59f35ab16e5c363ec1f Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Mon, 5 Feb 2024 16:23:54 +0100 Subject: [PATCH] =?UTF-8?q?Test=20der=20Dreieckberechnung=20auf=20sehr=20g?= =?UTF-8?q?ro=C3=9Fe=20Zahlen?= 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 bac784c..d6af16c 100644 --- a/src/test/c/Jason/test_ASCII_art.c +++ b/src/test/c/Jason/test_ASCII_art.c @@ -114,5 +114,16 @@ void test_korrekteBerechnungAufMaximaleGroesseDesDreieck() { int actualResult = berechnungDerDreieckArraygroesse(10); //assert + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); +} + +void test_korrekteBerechnungAufMaximaleGroesseDesDreiecksBeiGrossenZahlen() { + //arrange + int expectedResult = 50015000; + + //act + int actualResult = berechnungDerDreieckArraygroesse(10000); + //assert + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); } \ No newline at end of file