|
|
@ -162,6 +162,21 @@ void test_wirdKleinesBaumkroneKorrektBefuelld(void){ |
|
|
|
befuellenDesWeihnachtsbaumsMitZeilenumbruechen(message, 3, 4); |
|
|
|
|
|
|
|
|
|
|
|
// assert |
|
|
|
TEST_ASSERT_EQUAL_STRING(expectedMessage, message); |
|
|
|
} |
|
|
|
|
|
|
|
void test_wirdBaumstammAnRichtigerStelleEingestz(void){ |
|
|
|
// arrange |
|
|
|
char expectedMessage[] = " + "; |
|
|
|
|
|
|
|
// act |
|
|
|
char message[7]; |
|
|
|
|
|
|
|
befuellenDesStammarraysMitLeerzeichen(message, 6); |
|
|
|
stammAnRichtigerStelleEinsetzen(message, 6); |
|
|
|
|
|
|
|
|
|
|
|
// assert |
|
|
|
TEST_ASSERT_EQUAL_STRING(expectedMessage, message); |
|
|
|
} |