33 lines
447 B

#ifdef TEST
#include "unity.h"
#include "fakultaet.h"
#include "fakultaet.c"
void setUp(void)
{
}
void tearDown(void)
{
}
void test_fakultaet_1(void)
{
int result, expected = 24;
result = berechneFakultaetInt(4);
TEST_ASSERT_EQUAL_INT(expected, result);
}
void test_fakultaet_2(void)
{
double result, expected = 24.0;
result = berechneFakultaetInt(4.0);
TEST_ASSERT_EQUAL_DOUBLE(expected, result);
}
#endif //TEST