From f80e3d17ecfc7cd6ec85db0c734ef833f13bd4bd Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Wed, 31 Jan 2024 16:13:48 +0100 Subject: [PATCH] =?UTF-8?q?Test=20ob=20Erfragung=20durchl=C3=A4uft?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/c/Jason/ASCII_art.c | 1 + src/test/c/Jason/test_ASCII_art.c | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/src/main/c/Jason/ASCII_art.c b/src/main/c/Jason/ASCII_art.c index e87aba1..209700c 100644 --- a/src/main/c/Jason/ASCII_art.c +++ b/src/main/c/Jason/ASCII_art.c @@ -30,6 +30,7 @@ void quadrat(){ void weihnachtsbaum(){ abfrageDerHoehe(); + } int printWelcomeMessage(){ diff --git a/src/test/c/Jason/test_ASCII_art.c b/src/test/c/Jason/test_ASCII_art.c index fb2d6c9..8746052 100644 --- a/src/test/c/Jason/test_ASCII_art.c +++ b/src/test/c/Jason/test_ASCII_art.c @@ -82,4 +82,15 @@ void test_stringAbgleichMitLeerzeichenUndZeilenumbruch(void){ // assert TEST_ASSERT_EQUAL_STRING(expectedMessage, message); +} + +void test_erscheintDieAbfrageFuerWeihnachtsbaum() { + //arrange + int expectedResult = 0; + + //act + int actualResult = abfrageDerHoehe(); + //assert + + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); } \ No newline at end of file