Browse Source

unittest addition

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

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