Browse Source

unittest stunden

remotes/origin/ageinsecondsdev
fdai7754 11 months ago
parent
commit
ad6539037a
  1. 1
      src/ageinseconds.h
  2. 7
      test/test_ageinseconds.c

1
src/ageinseconds.h

@ -3,5 +3,6 @@
int sekunden(int jahre); int sekunden(int jahre);
int minuten(int jahre); int minuten(int jahre);
int stunden(int jahre);
#endif // AGEINSECONDS_H #endif // AGEINSECONDS_H

7
test/test_ageinseconds.c

@ -26,4 +26,11 @@ void test_ageinseconds_23_in_minuten(void)
TEST_ASSERT_EQUAL(12088800, result); 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 #endif // TEST
Loading…
Cancel
Save