From a6e9756d27d5bfbe6def14625b7217807d534d9a Mon Sep 17 00:00:00 2001 From: Justin Trausch Date: Wed, 7 Feb 2024 17:37:02 +0100 Subject: [PATCH] test_divsion_3. bitshift von 16 und 2 --- test/test_division.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test_division.c b/test/test_division.c index 8eb9e41..c128f06 100644 --- a/test/test_division.c +++ b/test/test_division.c @@ -31,4 +31,13 @@ void test_division_2(void) TEST_ASSERT_EQUAL_INT(expected, result); } +void test_division_3(void) +{ + int result, expected = 4; + + result = divisionByTwo(16,2); + + TEST_ASSERT_EQUAL_INT(expected, result); +} + #endif // TEST \ No newline at end of file