From d2dec64fc8db7390527eb99b5523eb8c52a7043e Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Tue, 30 Jan 2024 13:48:45 +0100 Subject: [PATCH] test zur korrekten Berechnung --- 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 3ce1a4c..3402698 100644 --- a/src/test/c/Jason/test_ASCII_art.c +++ b/src/test/c/Jason/test_ASCII_art.c @@ -28,5 +28,16 @@ void test_funktioniertDieAbfrageDerGroesse() { int actualResult = frageNachGroesse(); //assert + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); +} + +void test_korrekteBerechnungDerArrayGroesse() { + //arrange + int expectedResult = 200; + + //act + int actualResult = berechnungDerLaengeDesQuadratArrays(10); + //assert + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); } \ No newline at end of file