Browse Source

Added test for different input in input handler

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

7
test/test_inputHandler.c

@ -16,3 +16,10 @@ void test_inputHandler_returntwoforinputminus(void) {
result = getOperationIdBySymbol('-');
TEST_ASSERT_EQUAL_INT(expectedResult, result);
}
void test_inputHandler_returnoneforinputplus(void) {
int expectedResult = 1;
int result;
result = getOperationIdBySymbol('+');
TEST_ASSERT_EQUAL_INT(expectedResult, result);
}
Loading…
Cancel
Save