|
|
@ -92,5 +92,16 @@ void test_erscheintDieAbfrageFuerWeihnachtsbaum() { |
|
|
|
int actualResult = abfrageDerHoehe(); |
|
|
|
//assert |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |
|
|
|
|
|
|
|
void test_korrekteBerechnungAufMaximaleBreiteWeihnachtsbaum() { |
|
|
|
//arrange |
|
|
|
int expectedResult = 9; |
|
|
|
|
|
|
|
//act |
|
|
|
int actualResult = max_breite(6); |
|
|
|
//assert |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |