From 07e2db5698093db634eea689edc486a00306bd57 Mon Sep 17 00:00:00 2001 From: Eric Bagus Date: Fri, 9 Feb 2024 16:32:58 +0100 Subject: [PATCH] Added final test for input handler --- test/test_inputHandler.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_inputHandler.c b/test/test_inputHandler.c index 72dfd24..4b4f874 100644 --- a/test/test_inputHandler.c +++ b/test/test_inputHandler.c @@ -30,3 +30,10 @@ void test_inputHandler_returnzeroforinvalidinput(void) { result = isOperationIdValid(0); TEST_ASSERT_EQUAL_INT(expectedResult, result); } + +void test_inputHandler_returnoneifinputtoobig(void) { + int expectedResult = 1; + int result; + result = isNumberTooBig(300); + TEST_ASSERT_EQUAL_INT(expectedResult, result); +} \ No newline at end of file