From 322eb654006393f2f7efdd830542d687493b9856 Mon Sep 17 00:00:00 2001 From: Siamak Date: Thu, 8 Feb 2024 15:43:33 +0100 Subject: [PATCH] =?UTF-8?q?Testfunktion=20f=C3=BCr=20Fl=C3=A4chenberechnun?= =?UTF-8?q?g=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 32ae518..e479f76 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -408,6 +408,19 @@ void test_volume_from_3_4_5(void) TEST_ASSERT_EQUAL_INT(expected, actual); } +void test_area_from_3_4(void) +{ + /* arrange */ + int actual; + int expected = 12; + + /* act */ + actual = area(3, 4); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} + void test_stringLaenge_von_Kokosnuss(void) { /* arrange */