From ff796883a5be7fd706e53702c130a47a947fd132 Mon Sep 17 00:00:00 2001 From: fdai7754 Date: Sat, 3 Feb 2024 18:20:41 +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 b0b992b..ee6a1b2 100644 --- a/test/test_minirechner.c +++ b/test/test_minirechner.c @@ -69,4 +69,10 @@ void test_minitaschenrechner_8_mal_3(void) TEST_ASSERT_EQUAL(24, result); } +void test_minitaschenrechner_minus3_mal_minus4(void) +{ + float result = multiplizieren(-3, -4); + TEST_ASSERT_EQUAL(12, result); +} + #endif // TEST