From c1d009dcf7ea41e917c6df9b6b46d60b6b959f67 Mon Sep 17 00:00:00 2001 From: Siamak Date: Thu, 8 Feb 2024 15:33:55 +0100 Subject: [PATCH] =?UTF-8?q?Testfunktion=20f=C3=BCr=20Volumenberechnung=20e?= =?UTF-8?q?rstellt?= 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 438ef28..32ae518 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -395,6 +395,19 @@ void test_o_wins_onIndex_02_11_20(void) TEST_ASSERT_EQUAL_INT(expected, actual); } +void test_volume_from_3_4_5(void) +{ + /* arrange */ + int actual; + int expected = 60; + + /* act */ + actual = volume(3, 4, 5); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} + void test_stringLaenge_von_Kokosnuss(void) { /* arrange */