From 7bf86a54cbd425d1d98f55e14370f51477ffb2e2 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Fri, 9 Feb 2024 16:50:48 +0100 Subject: [PATCH] Commited Unit Test --- test/test_convert_time.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_convert_time.c b/test/test_convert_time.c index 99f4eca..73a014b 100644 --- a/test/test_convert_time.c +++ b/test/test_convert_time.c @@ -44,3 +44,10 @@ void test_convert_time_hourinsec(void){ result = converter_hour_in_sec(1.0); TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result); } + +void test_convert_time_sectohour(void){ + double expectedResult = 1.0; + double result; + result = converter_sec_in_hour(3600.0); + TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result); +}