From c3938309c5497cc185fcafc47da4fdc7aa2cba1c Mon Sep 17 00:00:00 2001 From: fdai7754 Date: Sun, 4 Feb 2024 16:34:32 +0100 Subject: [PATCH] unittest sekunden --- src/ageinseconds.h | 1 + test/test_ageinseconds.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/ageinseconds.h b/src/ageinseconds.h index 18518cc..5122b87 100644 --- a/src/ageinseconds.h +++ b/src/ageinseconds.h @@ -1,5 +1,6 @@ #ifndef AGEINSECONDS_H #define AGEINSECONDS_H +int sekunden(int jahre); #endif // AGEINSECONDS_H diff --git a/test/test_ageinseconds.c b/test/test_ageinseconds.c index 30a28d3..d1acd58 100644 --- a/test/test_ageinseconds.c +++ b/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