Browse Source

refactoring: added test comments

remotes/origin/primzahl
Hendrik Sitzmann 11 months ago
parent
commit
e94d6c707c
  1. 16
      test/primzahl/test_primzahl.c

16
test/primzahl/test_primzahl.c

@ -5,13 +5,13 @@ void setUP(){}
void tearDown(){} void tearDown(){}
void test_primzahl() { 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
} }
Loading…
Cancel
Save