From 1040e0c2e90dbb9e0ec786331f50817c06538821 Mon Sep 17 00:00:00 2001 From: fdai7754 Date: Sat, 3 Feb 2024 18:32:11 +0100 Subject: [PATCH] unittest division --- test/test_minirechner.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_minirechner.c b/test/test_minirechner.c index 008e592..6e72901 100644 --- a/test/test_minirechner.c +++ b/test/test_minirechner.c @@ -88,4 +88,10 @@ void test_minitaschenrechner_9_durch_3(void) TEST_ASSERT_EQUAL(3, result); } +void test_minitaschenrechner_minus6_durch_minus2(void) +{ + float result = dividieren(-6, -2); + TEST_ASSERT_EQUAL(3, result); +} + #endif // TEST