From 7b3854c20195f45d23bd8f39526fbce2092bc053 Mon Sep 17 00:00:00 2001 From: Eric Bagus Date: Fri, 9 Feb 2024 16:27:38 +0100 Subject: [PATCH] Implemented input handler test for valid method --- test/test_inputHandler.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_inputHandler.c b/test/test_inputHandler.c index e7bff29..72dfd24 100644 --- a/test/test_inputHandler.c +++ b/test/test_inputHandler.c @@ -23,3 +23,10 @@ void test_inputHandler_returnoneforinputplus(void) { result = getOperationIdBySymbol('+'); TEST_ASSERT_EQUAL_INT(expectedResult, result); } + +void test_inputHandler_returnzeroforinvalidinput(void) { + int expectedResult = 0; + int result; + result = isOperationIdValid(0); + TEST_ASSERT_EQUAL_INT(expectedResult, result); +}