From 6cc53cd215c9e48202338cadf354ea3de33a5856 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Fri, 9 Feb 2024 16:50:10 +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 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); +}