From d7e1d5879390ff45e4a5da029f764283d0dbe08f Mon Sep 17 00:00:00 2001 From: Leon Wolf Date: Fri, 9 Feb 2024 17:02:16 +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 5d456ab..eaa55d1 100644 --- a/test/test_convert_CM_in_M.c +++ b/test/test_convert_CM_in_M.c @@ -15,4 +15,11 @@ void test_cm_to_meter(void) { float expectedResult_1 = 1.0; float result_1 = cm_to_meter(value_1); TEST_ASSERT_EQUAL_FLOAT(expectedResult_1, result_1); +} +void test_cm_to_meter2(void) { + // Testfall 2: 50 cm sollten 0.5 Meter sein + float value_2 = 50.0; + float expectedResult_2 = 0.5; + float result_2 = cm_to_meter(value_2); + TEST_ASSERT_EQUAL_FLOAT(expectedResult_2, result_2); } \ No newline at end of file