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.

16 lines
361 B

  1. #include "unity.h"
  2. #include "primzahl.h"
  3. void setUP(){}
  4. void tearDown(){}
  5. void test_primzahl() {
  6. TEST_ASSERT_TRUE(primzahl(2));
  7. TEST_ASSERT_TRUE(primzahl(3));
  8. TEST_ASSERT_TRUE(primzahl(5));
  9. TEST_ASSERT_TRUE(primzahl(7));
  10. TEST_ASSERT_FALSE(primzahl(1));
  11. TEST_ASSERT_FALSE(primzahl(4));
  12. TEST_ASSERT_FALSE(primzahl(6));
  13. TEST_ASSERT_FALSE(primzahl(9));
  14. }