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.
 
 
 

20 lines
370 B

#include "unity.h"
#include "fakultaet.h"
void setUp(){}
void tearDown(){}
// Test for the input zero
void test_fakultaetOf0() {
TEST_ASSERT_EQUAL_INT(1, fakultaet(0));
}
// Test for the input one
void test_fakultaetOf1() {
TEST_ASSERT_EQUAL_INT(1, fakultaet(1));
}
// Test for the input five
void test_fakultaetOf5() {
TEST_ASSERT_EQUAL_INT(120, fakultaet(5));
}