From 65442d4ec568612ef7fcf32d74ca3174fc0b3265 Mon Sep 17 00:00:00 2001 From: fdai7754 Date: Sat, 3 Feb 2024 18:33:35 +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 6e72901..88e1df2 100644 --- a/test/test_minirechner.c +++ b/test/test_minirechner.c @@ -94,4 +94,10 @@ void test_minitaschenrechner_minus6_durch_minus2(void) TEST_ASSERT_EQUAL(3, result); } +void test_minitaschenrechner_0_durch_5(void) +{ + float result = dividieren(0, 5); + TEST_ASSERT_EQUAL(0, result); +} + #endif // TEST