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

11 months ago
11 months ago
11 months ago
  1. #ifdef TEST
  2. #include "unity.h"
  3. #include "inputHandling.h"
  4. char halloWelt[]="Hallo Welt";
  5. char halloWelt2[]="Hallo Welt";
  6. void setUp(void)
  7. {
  8. }
  9. void tearDown(void)
  10. {
  11. }
  12. void test_inputHandling_deleteOneWhiteSpace(void)
  13. {
  14. deleteWhitespace(halloWelt, 10);
  15. TEST_ASSERT_EQUAL_STRING("HalloWelt", halloWelt);
  16. }
  17. void test_inputHandling_deleteTwoWhiteSpaces(void)
  18. {
  19. deleteWhitespace(halloWelt, 11);
  20. TEST_ASSERT_EQUAL_STRING("HalloWelt", halloWelt);
  21. }
  22. #endif // TEST