From 1b1b51bc047551b14d54b1c9fd087d7c7b19b0d1 Mon Sep 17 00:00:00 2001 From: Sophia Weber Date: Sun, 28 Jan 2024 12:47:13 +0100 Subject: [PATCH] Add Whitespace Test with 2 Spaces --- test/test_inputHandling.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_inputHandling.c b/test/test_inputHandling.c index a6db8f6..eddc48a 100644 --- a/test/test_inputHandling.c +++ b/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