Browse Source

unittest minuten

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

1
src/ageinseconds.h

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

7
test/test_ageinseconds.c

@ -19,4 +19,11 @@ void test_ageinseconds_45_in_sekunden(void)
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
Loading…
Cancel
Save