diff --git a/test/test_operationHandler.c b/test/test_operationHandler.c index 1cdfb1d..cadef23 100644 --- a/test/test_operationHandler.c +++ b/test/test_operationHandler.c @@ -46,4 +46,11 @@ void test_operationHandler_extractingFirstNumber(void) { char str[] = {'4', '8', ' ', '5', '\0'}; int result = extractFirstNumber(str); TEST_ASSERT_EQUAL_INT(expectedResult, result); -} \ No newline at end of file +} + +void test_operationHandler_removefirstnumberfromoriginalstring(void) { + char expected[] = {'5', '\0'}; + char str[] = {'4', '8', ' ', '5', '\0'}; + extractFirstNumber(str); + TEST_ASSERT_EQUAL_STRING(expected, str); +}