Browse Source

unittest subtraktion

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

6
test/test_minirechner.c

@ -50,4 +50,10 @@ void test_minitaschenrechner_float_minus_float(void)
TEST_ASSERT_EQUAL(1.4, result); TEST_ASSERT_EQUAL(1.4, result);
} }
void test_minitaschenrechner_minus7_minus_minus3(void)
{
float result = subtrahieren(-7, -3);
TEST_ASSERT_EQUAL(-4, result);
}
#endif // TEST #endif // TEST
Loading…
Cancel
Save