From e9468bd84aa0a4d860d63d40ddee936653023a0d Mon Sep 17 00:00:00 2001 From: Justin Trausch Date: Wed, 7 Feb 2024 17:23:16 +0100 Subject: [PATCH] test_divsion_2. von dem Fall 10 / 2 = 5 --- test/test_division.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test_division.c b/test/test_division.c index 330359e..8eb9e41 100644 --- a/test/test_division.c +++ b/test/test_division.c @@ -22,5 +22,13 @@ void test_division_1(void) TEST_ASSERT_EQUAL_INT(expected, result); } +void test_division_2(void) +{ + double result, expected = 5.0; + + result = divisionDouble(10.0,2.0); + + TEST_ASSERT_EQUAL_INT(expected, result); +} #endif // TEST \ No newline at end of file