From e94d6c707caa1695870679a44a1451665363fdae Mon Sep 17 00:00:00 2001 From: Hendrik Sitzmann Date: Thu, 8 Feb 2024 19:19:43 +0100 Subject: [PATCH] refactoring: added test comments --- test/primzahl/test_primzahl.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/primzahl/test_primzahl.c b/test/primzahl/test_primzahl.c index 5f77041..2276ce9 100644 --- a/test/primzahl/test_primzahl.c +++ b/test/primzahl/test_primzahl.c @@ -5,13 +5,13 @@ void setUP(){} void tearDown(){} void test_primzahl() { - TEST_ASSERT_TRUE(primzahl(2)); - TEST_ASSERT_TRUE(primzahl(3)); - TEST_ASSERT_TRUE(primzahl(5)); - TEST_ASSERT_TRUE(primzahl(7)); - TEST_ASSERT_FALSE(primzahl(1)); - TEST_ASSERT_FALSE(primzahl(4)); - TEST_ASSERT_FALSE(primzahl(6)); - TEST_ASSERT_FALSE(primzahl(9)); + TEST_ASSERT_TRUE(primzahl(2)); // 2 is a prime number + TEST_ASSERT_TRUE(primzahl(3)); // 3 is a prime number + TEST_ASSERT_TRUE(primzahl(5)); // 5 is a prime number + TEST_ASSERT_TRUE(primzahl(7)); // 7 is a prime number + TEST_ASSERT_FALSE(primzahl(1)); // 1 is not a prime number + TEST_ASSERT_FALSE(primzahl(4)); // 4 is not a prime number + TEST_ASSERT_FALSE(primzahl(6)); // 6 is not a prime number + TEST_ASSERT_FALSE(primzahl(9)); // 9 is not a prime number } \ No newline at end of file