|
|
@ -6,6 +6,7 @@ |
|
|
|
char halloWelt[]="Hallo Welt"; |
|
|
|
char halloWelt2[]="Hallo Welt"; |
|
|
|
char halloWelt3[]="Ha llo W el t "; |
|
|
|
char halloWelt4[]="Ha\n\nllo \r W el\r\r t "; |
|
|
|
|
|
|
|
void setUp(void) |
|
|
|
{ |
|
|
@ -33,4 +34,10 @@ void test_inputHandling_deleteManyWhiteSpaces(void) |
|
|
|
TEST_ASSERT_EQUAL_STRING("HalloWelt", halloWelt3); |
|
|
|
} |
|
|
|
|
|
|
|
void test_inputHandling_deleteAllOtherCharacter(void) |
|
|
|
{ |
|
|
|
deleteWhitespace(halloWelt4, 19); |
|
|
|
TEST_ASSERT_EQUAL_STRING("HalloWelt", halloWelt4); |
|
|
|
} |
|
|
|
|
|
|
|
#endif // TEST |