From 3d2f505605f558c0acc61bfbe8eb9f3a9c7196f0 Mon Sep 17 00:00:00 2001 From: siamak Date: Fri, 9 Feb 2024 00:31:23 +0100 Subject: [PATCH] =?UTF-8?q?Testfunktion=20f=C3=BCr=20Umwandlung=20von=20De?= =?UTF-8?q?zimeter=20in=20Zentimeter=20erstellt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/test_funktionen.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c index 59ea166..716b954 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -434,6 +434,19 @@ void test_convert_meter_in_dezimeter(void) TEST_ASSERT_EQUAL_INT(expected, actual); } +void test_convert_dezimeter_in_centimeter(void) +{ + /* arrange */ + int actual; + int expected = 40; + + /* act */ + actual = berechnungVonDezimeterzuCentimeter(4); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} + void test_stringLaenge_von_Kokosnuss(void) { /* arrange */