From b343654dd787ca6acaa09cf8a96131aa6e56b582 Mon Sep 17 00:00:00 2001 From: fdai7754 Date: Sat, 3 Feb 2024 17:28:10 +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 cce14b7..140d6cb 100644 --- a/test/test_minirechner.c +++ b/test/test_minirechner.c @@ -19,4 +19,10 @@ void test_minitaschenrechner_3_plus_4(void) TEST_ASSERT_EQUAL(7, result); } +void test_minitaschenrechner_float_plus_float(void) +{ + float result = addieren(3.1, 4.2); + TEST_ASSERT_EQUAL(7.3, result); +} + #endif // TEST