From db1ea053ca30e72b0bfdbffa06295e8574a6996d Mon Sep 17 00:00:00 2001 From: Justin Trausch Date: Wed, 7 Feb 2024 21:24:56 +0100 Subject: [PATCH] test_division_1_durch_0 mit Int Division --- test/test_division.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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;