Browse Source

unittest subtraktion

remotes/origin/minirechnerdev
fdai7754 11 months ago
parent
commit
bed2be90be
  1. 6
      test/test_minirechner.c

6
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
Loading…
Cancel
Save