From 54be43dd7b708356e8188f5fa06793457e3cd033 Mon Sep 17 00:00:00 2001 From: Eric Bagus Date: Fri, 9 Feb 2024 16:25:50 +0100 Subject: [PATCH] Added test for different input in input handler --- test/test_inputHandler.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/test_inputHandler.c b/test/test_inputHandler.c index 5cf92c7..e7bff29 100644 --- a/test/test_inputHandler.c +++ b/test/test_inputHandler.c @@ -15,4 +15,11 @@ void test_inputHandler_returntwoforinputminus(void) { int result; result = getOperationIdBySymbol('-'); TEST_ASSERT_EQUAL_INT(expectedResult, result); -} \ No newline at end of file +} + +void test_inputHandler_returnoneforinputplus(void) { + int expectedResult = 1; + int result; + result = getOperationIdBySymbol('+'); + TEST_ASSERT_EQUAL_INT(expectedResult, result); +}