From 5658f6af3e7f37431cba522a86266dde6d0627e2 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Fri, 9 Feb 2024 16:45:29 +0100 Subject: [PATCH] Commited Unit Test --- test/test_convert_kph_to_mps.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_convert_kph_to_mps.c b/test/test_convert_kph_to_mps.c index 62b3355..8d09c7b 100644 --- a/test/test_convert_kph_to_mps.c +++ b/test/test_convert_kph_to_mps.c @@ -16,3 +16,10 @@ void test_convert_kph_to_mps_kpstomps(void){ result = converter_kph_to_mps(3.6); TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result); } + +void test_convert_kph_to_mps_mpstokps(void){ + double expectedResult = 3.6; + double result; + result = converter_mps_to_kph(1.0); + TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result); +} \ No newline at end of file