Browse Source

test_division_1_durch_0 mit Int Division

master
Justin Trausch 11 months ago
parent
commit
db1ea053ca
  1. 9
      test/test_division.c

9
test/test_division.c

@ -22,6 +22,15 @@ void test_division_1(void)
TEST_ASSERT_EQUAL_INT(expected, result); TEST_ASSERT_EQUAL_INT(expected, result);
} }
void test_division_1_durch_0(void)
{
int result, expected = 0;
result = divisionInt(10,0);
TEST_ASSERT_EQUAL_INT(expected, result);
}
void test_division_2(void) void test_division_2(void)
{ {
double result, expected = 5.0; double result, expected = 5.0;

Loading…
Cancel
Save