You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
561 B

#include "unity.h"
#include "primzahl.h"
void setUP(){}
void tearDown(){}
void test_primzahl() {
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
}