Browse Source

test_fakultaet_2 Fakultaet_Double von 4.0 = 24.0

master
Justin Trausch 11 months ago
parent
commit
cc3cf57441
  1. 9
      test/test_fakultaet.c

9
test/test_fakultaet.c

@ -21,4 +21,13 @@ void test_fakultaet_1(void)
TEST_ASSERT_EQUAL_INT(expected, result); TEST_ASSERT_EQUAL_INT(expected, result);
} }
void test_fakultaet_2(void)
{
double result, expected = 24.0;
result = berechneFakultaetInt(4.0);
TEST_ASSERT_EQUAL_DOUBLE(expected, result);
}
#endif //TEST #endif //TEST
Loading…
Cancel
Save