diff --git a/src/test/c/test_taschenrechner.c b/src/test/c/test_taschenrechner.c index 38ccd8e..39414dd 100644 --- a/src/test/c/test_taschenrechner.c +++ b/src/test/c/test_taschenrechner.c @@ -192,4 +192,16 @@ void test_performOperation_Multiplication(void) { TEST_ASSERT_EQUAL_INT(24, result); } +// Test case for division +void test_performOperation_Division(void) { + // Arrange + int result; + + // Act + result = performOperation(8, '/', 2); + + // Assert + TEST_ASSERT_EQUAL_INT(4, result); +} + #endif // TEST