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