From 5cbbc4131b26ecc5ed41355742d1e4c05f34c36a Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Tue, 30 Jan 2024 12:55:38 +0100 Subject: [PATCH] Test ob Aufruf funktioniert --- src/test/c/Jason/test_ASCII_art.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/test/c/Jason/test_ASCII_art.c b/src/test/c/Jason/test_ASCII_art.c index 4b7c273..3ce1a4c 100644 --- a/src/test/c/Jason/test_ASCII_art.c +++ b/src/test/c/Jason/test_ASCII_art.c @@ -9,7 +9,7 @@ void tearDown(void){ } -void test_doesWelcomeMessageWork(){ +void test_doesWelcomeMessageWork() { //arrange int expectedResult = 0; @@ -17,5 +17,16 @@ void test_doesWelcomeMessageWork(){ int actualResult = printWelcomeMessage(); //assert - TEST_ASSERT_EQUAL_INT(expectedResult,actualResult); + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); +} + +void test_funktioniertDieAbfrageDerGroesse() { + //arrange + int expectedResult = 0; + + //act + int actualResult = frageNachGroesse(); + //assert + + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); } \ No newline at end of file