From 89d3690fc64460926781d042be3ac4de2c46ff6f Mon Sep 17 00:00:00 2001 From: Leon Wolf Date: Fri, 9 Feb 2024 17:00:16 +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 3bce101..6cf23e3 100644 --- a/test/test_convert_cm_in_dm.c +++ b/test/test_convert_cm_in_dm.c @@ -15,4 +15,11 @@ void test_cm_to_dm(void) { double expectedResult_1 = 10.0; double result_1 = cm_to_dm(value_1); TEST_ASSERT_EQUAL_FLOAT(expectedResult_1, result_1); +} +void test_cm_to_dm2(void) { + // Testfall 2: 50 cm sollten 5 Dezimeter sein + double value_2 = 50.0; + double expectedResult_2 = 5.0; + double result_2 = cm_to_dm(value_2); + TEST_ASSERT_EQUAL_FLOAT(expectedResult_2, result_2); } \ No newline at end of file