#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