From 73d21aff5aa00c169c4b074c0523f67e97920fa4 Mon Sep 17 00:00:00 2001 From: fdai7754 Date: Sat, 3 Feb 2024 18:11:13 +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 a182710..b7703ee 100644 --- a/test/test_minirechner.c +++ b/test/test_minirechner.c @@ -56,4 +56,10 @@ void test_minitaschenrechner_minus7_minus_minus3(void) TEST_ASSERT_EQUAL(-4, result); } +void test_minitaschenrechner_4_minus_0(void) +{ + float result = subtrahieren(4, 0); + TEST_ASSERT_EQUAL(4, result); +} + #endif // TEST