diff --git a/test/test_division.c b/test/test_division.c index 4ecb4dc..8fd5bbc 100644 --- a/test/test_division.c +++ b/test/test_division.c @@ -22,6 +22,15 @@ void test_division_1(void) 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) { double result, expected = 5.0;