From 7c67f79786b62bb699481812d0924af1279f7ded Mon Sep 17 00:00:00 2001 From: Leon Wolf Date: Fri, 9 Feb 2024 17:05:23 +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 0a0b4c3..0df2589 100644 --- a/test/test_convert_M_in_KM.c +++ b/test/test_convert_M_in_KM.c @@ -16,3 +16,10 @@ void test_meter_to_kilometer(void) { double result_1 = meter_to_kilometer(value_1); TEST_ASSERT_EQUAL_FLOAT(expectedResult_1, result_1); } +void test_meter_to_kilometer2(void) { + // Testfall 2: 500 Meter sollten 0.5 Kilometer sein + double value_2 = 500.0; + double expectedResult_2 = 0.5; + double result_2 = meter_to_kilometer(value_2); + TEST_ASSERT_EQUAL_FLOAT(expectedResult_2, result_2); +} \ No newline at end of file