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.

36 lines
536 B

#ifdef TEST
#include "unity.h"
#include "ageinseconds.h"
void setUp(void)
{
}
void tearDown(void)
{
}
// test sekunden
void test_ageinseconds_45_in_sekunden(void)
{
float result = sekunden(45);
TEST_ASSERT_EQUAL(1419120000, result);
}
// test minuten
void test_ageinseconds_23_in_minuten(void)
{
float result = minuten(23);
TEST_ASSERT_EQUAL(12088800, result);
}
// test stunden
void test_ageinseconds_34_in_stunden(void)
{
float result = stunden(34);
TEST_ASSERT_EQUAL(297840, result);
}
#endif // TEST