Browse Source

Added final test for input handler

remotes/origin/develop
Eric Bagus 11 months ago
parent
commit
07e2db5698
  1. 7
      test/test_inputHandler.c

7
test/test_inputHandler.c

@ -30,3 +30,10 @@ void test_inputHandler_returnzeroforinvalidinput(void) {
result = isOperationIdValid(0); result = isOperationIdValid(0);
TEST_ASSERT_EQUAL_INT(expectedResult, result); 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);
}
Loading…
Cancel
Save