From 08d3d60566bbf8aa42ab1e5f5d4a218343543f94 Mon Sep 17 00:00:00 2001 From: Justin Trausch Date: Wed, 7 Feb 2024 21:21:46 +0100 Subject: [PATCH] test_bitshift_druch_0 bei bitshift funktion --- test/test_division.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test_division.c b/test/test_division.c index 52b1036..4ecb4dc 100644 --- a/test/test_division.c +++ b/test/test_division.c @@ -31,6 +31,15 @@ void test_division_2(void) TEST_ASSERT_EQUAL_DOUBLE(expected, result); } +void test_bitshiftdruch0(void) +{ + int result, expected = 16; + + result = divisionByTwo(16,0); + + TEST_ASSERT_EQUAL_INT(expected, result); +} + void test_division_3(void) { int result, expected = 4;