From 278f4d606fa00d6136af82fe0a32055672908a28 Mon Sep 17 00:00:00 2001 From: Habib Date: Sat, 3 Feb 2024 02:41:54 +0100 Subject: [PATCH] =?UTF-8?q?Test=20f=C3=BCr=20divide()=20erstellt,=20der=20?= =?UTF-8?q?auf=20die=20Division=20von=2024=20durch=203=20testet?= 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 ba69ca8..3046c03 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -50,4 +50,17 @@ void test_5_minus_2(void) TEST_ASSERT_EQUAL_INT(expected, actual); } +void test_24_divided_by_3(void) +{ + /* arrange */ + int actual; + int expected = 8; + + /* act */ + actual = divide(24, 3); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} + #endif \ No newline at end of file