From 3c9b1854b1a91331f6327854493c01283e4309bb Mon Sep 17 00:00:00 2001 From: fdai7731 Date: Thu, 8 Feb 2024 17:45:49 +0100 Subject: [PATCH] test_Zufallszahl --- src/test/c/test_Mathe.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/c/test_Mathe.c b/src/test/c/test_Mathe.c index 9f243e2..c9e77f4 100644 --- a/src/test/c/test_Mathe.c +++ b/src/test/c/test_Mathe.c @@ -47,6 +47,17 @@ void test_Mathe_divided(void) +void test_Zufallszahl(void) +{ + + int a= generiereZufallszahl(1, 10); + + /* assert */ +TEST_ASSERT_INT_WITHIN (10, 1, a); + +} + +