From 6bdaf0b74a8bdb769e80bf9706b5898779189a20 Mon Sep 17 00:00:00 2001 From: Leon Wolf Date: Fri, 9 Feb 2024 17:00:29 +0100 Subject: [PATCH] Commited Unit Test cm in dm --- test/test_convert_cm_in_dm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_convert_cm_in_dm.c b/test/test_convert_cm_in_dm.c index 6cf23e3..112ee0d 100644 --- a/test/test_convert_cm_in_dm.c +++ b/test/test_convert_cm_in_dm.c @@ -22,4 +22,11 @@ void test_cm_to_dm2(void) { double expectedResult_2 = 5.0; double result_2 = cm_to_dm(value_2); TEST_ASSERT_EQUAL_FLOAT(expectedResult_2, result_2); +} +void test_cm_to_dm3(void) { + // Testfall 3: 200 cm sollten 20 Dezimeter sein + double value_3 = 200.0; + double expectedResult_3 = 20.0; + double result_3 = cm_to_dm(value_3); + TEST_ASSERT_EQUAL_FLOAT(expectedResult_3, result_3); } \ No newline at end of file