You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
480 B

#ifdef TEST
#include "unity.h"
#include "inputHandling.h"
char halloWelt[]="Hallo Welt";
char halloWelt2[]="Hallo Welt";
void setUp(void)
{
}
void tearDown(void)
{
}
void test_inputHandling_deleteOneWhiteSpace(void)
{
deleteWhitespace(halloWelt, 10);
TEST_ASSERT_EQUAL_STRING("HalloWelt", halloWelt);
}
void test_inputHandling_deleteTwoWhiteSpaces(void)
{
deleteWhitespace(halloWelt, 11);
TEST_ASSERT_EQUAL_STRING("HalloWelt", halloWelt);
}
#endif // TEST