From 72a9ae19f9569ec62bd81e0b335f000dc1b23e69 Mon Sep 17 00:00:00 2001 From: fdai7754 Date: Sat, 3 Feb 2024 17:49:55 +0100 Subject: [PATCH] unittest addition --- test/test_minirechner.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_minirechner.c b/test/test_minirechner.c index 140d6cb..fe6443d 100644 --- a/test/test_minirechner.c +++ b/test/test_minirechner.c @@ -25,4 +25,10 @@ void test_minitaschenrechner_float_plus_float(void) TEST_ASSERT_EQUAL(7.3, result); } +void test_minitaschenrechner_minus1_plus_minus3(void) +{ + float result = addieren(-1, -3); + TEST_ASSERT_EQUAL(-4, result); +} + #endif // TEST