From 6cc53cd215c9e48202338cadf354ea3de33a5856 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Fri, 9 Feb 2024 16:50:10 +0100 Subject: [PATCH 1/5] 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 dfec27a..d17c855 100644 --- a/test/test_convert_time.c +++ b/test/test_convert_time.c @@ -30,3 +30,10 @@ void test_convert_time_hourtomin(void){ result = converter_hour_to_min(1.0); TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result); } + +void test_convert_time_mintohour(void){ + double expectedResult = 1.0; + double result; + result = converter_min_to_hour(60.0); + TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result); +} From 5d0e538fe6aefde0295547fbc006e1998d559bf1 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Fri, 9 Feb 2024 16:50:33 +0100 Subject: [PATCH 2/5] 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 d17c855..99f4eca 100644 --- a/test/test_convert_time.c +++ b/test/test_convert_time.c @@ -37,3 +37,10 @@ void test_convert_time_mintohour(void){ result = converter_min_to_hour(60.0); TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result); } + +void test_convert_time_hourinsec(void){ + double expectedResult = 3600.0; + double result; + result = converter_hour_in_sec(1.0); + TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result); +} From 7bf86a54cbd425d1d98f55e14370f51477ffb2e2 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Fri, 9 Feb 2024 16:50:48 +0100 Subject: [PATCH 3/5] 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); +} From 8d588bf3b302b96bce7f859667d097209d3b7998 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Fri, 9 Feb 2024 16:51:03 +0100 Subject: [PATCH 4/5] 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 73a014b..b68e9f2 100644 --- a/test/test_convert_time.c +++ b/test/test_convert_time.c @@ -51,3 +51,10 @@ void test_convert_time_sectohour(void){ result = converter_sec_in_hour(3600.0); TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result); } + +void test_convert_time_daysinyears(void){ + double expectedResult = 1.0; + double result; + result = converter_days_to_years(365.0); + TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result); +} From 827c0e27a0eb2b2010fc7f1469d178038ec29631 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Fri, 9 Feb 2024 16:51:17 +0100 Subject: [PATCH 5/5] 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