Browse Source

unittest sekunden

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

1
src/ageinseconds.h

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

7
test/test_ageinseconds.c

@ -12,4 +12,11 @@ void tearDown(void)
{
}
// test sekunden
void test_ageinseconds_45_in_sekunden(void)
{
float result = sekunden(45);
TEST_ASSERT_EQUAL(1419120000, result);
}
#endif // TEST
Loading…
Cancel
Save