Browse Source

unittest division

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

6
test/test_minirechner.c

@ -88,4 +88,10 @@ void test_minitaschenrechner_9_durch_3(void)
TEST_ASSERT_EQUAL(3, result);
}
void test_minitaschenrechner_minus6_durch_minus2(void)
{
float result = dividieren(-6, -2);
TEST_ASSERT_EQUAL(3, result);
}
#endif // TEST
Loading…
Cancel
Save