From bed2be90be540180596020a45126b133830b099f Mon Sep 17 00:00:00 2001 From: fdai7754 Date: Sat, 3 Feb 2024 18:05:26 +0100 Subject: [PATCH] unittest subtraktion --- test/test_minirechner.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_minirechner.c b/test/test_minirechner.c index cba19de..112e817 100644 --- a/test/test_minirechner.c +++ b/test/test_minirechner.c @@ -44,4 +44,10 @@ void test_minitaschenrechner_5_minus_2(void) TEST_ASSERT_EQUAL(3, result); } +void test_minitaschenrechner_float_minus_float(void) +{ + float result = subtrahieren(2.7, 1.3); + TEST_ASSERT_EQUAL(1.4, result); +} + #endif // TEST