From 46f277274dd3c787f8c4ed1b6d7e38c9120dec8b Mon Sep 17 00:00:00 2001 From: fdai7754 Date: Sat, 3 Feb 2024 18:22:06 +0100 Subject: [PATCH] unittest multiplikation --- test/test_minirechner.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_minirechner.c b/test/test_minirechner.c index ee6a1b2..a3cf7b2 100644 --- a/test/test_minirechner.c +++ b/test/test_minirechner.c @@ -75,4 +75,10 @@ void test_minitaschenrechner_minus3_mal_minus4(void) TEST_ASSERT_EQUAL(12, result); } +void test_minitaschenrechner_0_mal_5(void) +{ + float result = multiplizieren(0, 5); + TEST_ASSERT_EQUAL(0, result); +} + #endif // TEST