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
361 B
17 lines
361 B
#include "unity.h"
|
|
#include "primzahl.h"
|
|
|
|
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));
|
|
|
|
}
|