diff --git a/src/test/c/test_taschenrechner.c b/src/test/c/test_taschenrechner.c index f51aaad..65e544f 100644 --- a/src/test/c/test_taschenrechner.c +++ b/src/test/c/test_taschenrechner.c @@ -156,4 +156,18 @@ void test_exponentialFunction(void) { TEST_ASSERT_EQUAL_FLOAT(1.0, exponentialFunction(0.0)); } +// addition with two numbers +void test_performOperation_Addition(void) { + // Arrange + int result; + + // Act + result = performOperation(5, '+', 3); + + // Assert + TEST_ASSERT_EQUAL_INT(8, result); +} + + + #endif // TEST