From a1c14e6d25f4844dfc4cb5d72f2047ab7f0d24fd Mon Sep 17 00:00:00 2001 From: Leon Wolf Date: Fri, 9 Feb 2024 17:05:36 +0100 Subject: [PATCH] Commited Unit Test m in km --- test/test_convert_M_in_KM.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_convert_M_in_KM.c b/test/test_convert_M_in_KM.c index 0df2589..bdfeea0 100644 --- a/test/test_convert_M_in_KM.c +++ b/test/test_convert_M_in_KM.c @@ -22,4 +22,11 @@ void test_meter_to_kilometer2(void) { double expectedResult_2 = 0.5; double result_2 = meter_to_kilometer(value_2); TEST_ASSERT_EQUAL_FLOAT(expectedResult_2, result_2); +} +void test_meter_to_kilometer3(void) { +// Testfall 3: 1500 Meter sollten 1.5 Kilometer sein + double value_3 = 1500.0; + double expectedResult_3 = 1.5; + double result_3 = meter_to_kilometer(value_3); + TEST_ASSERT_EQUAL_FLOAT(expectedResult_3, result_3); } \ No newline at end of file