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.
29 lines
401 B
29 lines
401 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);
|
|
}
|
|
|
|
#endif // TEST
|