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

11 months ago
11 months ago
11 months ago
  1. #ifdef TEST
  2. #include "unity.h"
  3. #include "ageinseconds.h"
  4. void setUp(void)
  5. {
  6. }
  7. void tearDown(void)
  8. {
  9. }
  10. // test sekunden
  11. void test_ageinseconds_45_in_sekunden(void)
  12. {
  13. float result = sekunden(45);
  14. TEST_ASSERT_EQUAL(1419120000, result);
  15. }
  16. // test minuten
  17. void test_ageinseconds_23_in_minuten(void)
  18. {
  19. float result = minuten(23);
  20. TEST_ASSERT_EQUAL(12088800, result);
  21. }
  22. // test stunden
  23. void test_ageinseconds_34_in_stunden(void)
  24. {
  25. float result = stunden(34);
  26. TEST_ASSERT_EQUAL(297840, result);
  27. }
  28. #endif // TEST