From 733d986c0121629c8c7066eab1dd34cf8fee0fa9 Mon Sep 17 00:00:00 2001 From: fdai7754 Date: Sat, 3 Feb 2024 17:52:10 +0100 Subject: [PATCH] unittest addition --- test/test_minirechner.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_minirechner.c b/test/test_minirechner.c index fe6443d..cacd21b 100644 --- a/test/test_minirechner.c +++ b/test/test_minirechner.c @@ -31,4 +31,9 @@ void test_minitaschenrechner_minus1_plus_minus3(void) TEST_ASSERT_EQUAL(-4, result); } +void test_minitaschenrechner_0_plus_2(void) +{ + float result = addieren(0, 2); + TEST_ASSERT_EQUAL(2, result); +} #endif // TEST