From 8daf379d64a2db05a10c6a76fb2c61d08563c646 Mon Sep 17 00:00:00 2001 From: Siamak Date: Thu, 8 Feb 2024 16:34:36 +0100 Subject: [PATCH] =?UTF-8?q?Testfunktion=20f=C3=BCr=20Umrechnung=20von=20Me?= =?UTF-8?q?ter=20auf=20Dezimeter.?= 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 e479f76..59ea166 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -421,6 +421,19 @@ void test_area_from_3_4(void) TEST_ASSERT_EQUAL_INT(expected, actual); } +void test_convert_meter_in_dezimeter(void) +{ + /* arrange */ + int actual; + int expected = 30; + + /* act */ + actual = berechnungVonMeterzuDezimeter(3); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} + void test_stringLaenge_von_Kokosnuss(void) { /* arrange */