diff --git a/src/test/c/test_Mathe.c b/src/test/c/test_Mathe.c index c9e77f4..3cd0107 100644 --- a/src/test/c/test_Mathe.c +++ b/src/test/c/test_Mathe.c @@ -58,6 +58,12 @@ TEST_ASSERT_INT_WITHIN (10, 1, a); } +void testGeneriereZufallsOperator() { + // Since the function always returns one of {'+', '-', '*', '/'}, no specific range check is needed. + char result = generiereZufallsOperator(); + TEST_ASSERT_TRUE(result == '+' || result == '-' || result == '*' || result == '/'); +} +