From 90929037efce3a0ce430e2cd7db338cb6b320a70 Mon Sep 17 00:00:00 2001 From: Leon Wolf Date: Fri, 9 Feb 2024 17:02:58 +0100 Subject: [PATCH] Commited Unit Test cm in m --- test/test_convert_CM_in_M.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_convert_CM_in_M.c b/test/test_convert_CM_in_M.c index eaa55d1..83ee807 100644 --- a/test/test_convert_CM_in_M.c +++ b/test/test_convert_CM_in_M.c @@ -22,4 +22,11 @@ void test_cm_to_meter2(void) { float expectedResult_2 = 0.5; float result_2 = cm_to_meter(value_2); TEST_ASSERT_EQUAL_FLOAT(expectedResult_2, result_2); +} +void test_cm_to_meter3(void) { + // Testfall 3: 200 cm sollten 2 Meter sein + float value_3 = 200.0; + float expectedResult_3 = 2.0; + float result_3 = cm_to_meter(value_3); + TEST_ASSERT_EQUAL_FLOAT(expectedResult_3, result_3); } \ No newline at end of file