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