From dfe0d2b7369591da47f1745dff322133ea415517 Mon Sep 17 00:00:00 2001 From: fdai7754 Date: Sat, 3 Feb 2024 18:08:06 +0100 Subject: [PATCH] unittest subtraktion --- test/test_minirechner.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_minirechner.c b/test/test_minirechner.c index 112e817..a182710 100644 --- a/test/test_minirechner.c +++ b/test/test_minirechner.c @@ -50,4 +50,10 @@ void test_minitaschenrechner_float_minus_float(void) TEST_ASSERT_EQUAL(1.4, result); } +void test_minitaschenrechner_minus7_minus_minus3(void) +{ + float result = subtrahieren(-7, -3); + TEST_ASSERT_EQUAL(-4, result); +} + #endif // TEST