From 827c0e27a0eb2b2010fc7f1469d178038ec29631 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Fri, 9 Feb 2024 16:51:17 +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 b68e9f2..e9e35b3 100644 --- a/test/test_convert_time.c +++ b/test/test_convert_time.c @@ -58,3 +58,10 @@ void test_convert_time_daysinyears(void){ result = converter_days_to_years(365.0); TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result); } + +void test_convert_time_yearsindays(void){ + double expectedResult = 365.0; + double result; + result = converter_years_to_days(1.0); + TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result); +} \ No newline at end of file