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.

19 lines
370 B

  1. #include "unity.h"
  2. #include "fakultaet.h"
  3. void setUp(){}
  4. void tearDown(){}
  5. // Test for the input zero
  6. void test_fakultaetOf0() {
  7. TEST_ASSERT_EQUAL_INT(1, fakultaet(0));
  8. }
  9. // Test for the input one
  10. void test_fakultaetOf1() {
  11. TEST_ASSERT_EQUAL_INT(1, fakultaet(1));
  12. }
  13. // Test for the input five
  14. void test_fakultaetOf5() {
  15. TEST_ASSERT_EQUAL_INT(120, fakultaet(5));
  16. }