Browse Source

Add Whitespace Test with 2 Spaces

remotes/origin/Input_Handling
Sophia Weber 11 months ago
parent
commit
1b1b51bc04
  1. 7
      test/test_inputHandling.c

7
test/test_inputHandling.c

@ -4,6 +4,7 @@
#include "inputHandling.h"
char halloWelt[]="Hallo Welt";
char halloWelt2[]="Hallo Welt";
void setUp(void)
{
@ -19,4 +20,10 @@ void test_inputHandling_deleteOneWhiteSpace(void)
TEST_ASSERT_EQUAL_STRING("HalloWelt", halloWelt);
}
void test_inputHandling_deleteTwoWhiteSpaces(void)
{
deleteWhitespace(halloWelt, 11);
TEST_ASSERT_EQUAL_STRING("HalloWelt", halloWelt);
}
#endif // TEST
Loading…
Cancel
Save