|
@ -138,6 +138,21 @@ void test_wirdKleinesDreieckKorrektBefuellt(void){ |
|
|
befuellenDesDreiecksMitZeilenumbruechen(message, 2, 5); |
|
|
befuellenDesDreiecksMitZeilenumbruechen(message, 2, 5); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// assert |
|
|
|
|
|
TEST_ASSERT_EQUAL_STRING(expectedMessage, message); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_wirdKleinesBaumkroneKorrektBefuelld(void){ |
|
|
|
|
|
// arrange |
|
|
|
|
|
char expectedMessage[] = " + \n+++"; |
|
|
|
|
|
|
|
|
|
|
|
// act |
|
|
|
|
|
char message[9]; |
|
|
|
|
|
befuellenDesWeihnachtsbaumsMitLeerzeichen(message, 8); |
|
|
|
|
|
befuellenDesWeihnachtsbaumsMitPlus(message, 4, (3-1)); |
|
|
|
|
|
befuellenDesWeihnachtsbaumsMitZeilenumbruechen(message, 3, 4); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// assert |
|
|
// assert |
|
|
TEST_ASSERT_EQUAL_STRING(expectedMessage, message); |
|
|
TEST_ASSERT_EQUAL_STRING(expectedMessage, message); |
|
|
} |
|
|
} |