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); +}