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