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