Browse Source

testGeneriereZufallsOperator

main^2
fdai7731 11 months ago
parent
commit
9e572e3ca2
  1. 6
      src/test/c/test_Mathe.c

6
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 == '/');
}

Loading…
Cancel
Save