From 1325941ee52a12b931cad7b43d2cc780a8032920 Mon Sep 17 00:00:00 2001 From: fdai7782 Date: Wed, 7 Feb 2024 16:55:56 +0000 Subject: [PATCH] Revert "Added unittest for the test case in to check the performOperation function's ability to perform addition. Includes arranging operands, performing addition, and asserting the expected result." This reverts commit d3f2d7ec6b0db70895a3568608827bd8a157e96e. --- src/test/c/test_taschenrechner.c | 48 -------------------------------- 1 file changed, 48 deletions(-) diff --git a/src/test/c/test_taschenrechner.c b/src/test/c/test_taschenrechner.c index 39414dd..f51aaad 100644 --- a/src/test/c/test_taschenrechner.c +++ b/src/test/c/test_taschenrechner.c @@ -156,52 +156,4 @@ 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); -} - -// Test case for subtraction -void test_performOperation_Subtraction(void) { - // Arrange - int result; - - // Act - result = performOperation(10, '-', 3); - - // Assert - TEST_ASSERT_EQUAL_INT(7, result); -} - -// Test case for multiplication -void test_performOperation_Multiplication(void) { - // Arrange - int result; - - // Act - result = performOperation(4, '*', 6); - - // Assert - 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