From 692b9665196db1d25c73b377dc7c797a12fabbd3 Mon Sep 17 00:00:00 2001 From: Habib Date: Sat, 3 Feb 2024 02:24:13 +0100 Subject: [PATCH] =?UTF-8?q?Test=20f=C3=BCr=20multiply()=20erstellt,=20der?= =?UTF-8?q?=20auf=20die=20Multiplikation=20von=2011=20und=2011=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 0d2d5c9..cd2c30c 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -24,4 +24,17 @@ void test_1000_plus_1(void) TEST_ASSERT_EQUAL_INT(expected, actual); } +void test_11_multiplied_by_11(void) +{ + /* arrange */ + int actual; + int expected = 121; + + /* act */ + actual = multiply(11, 11); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} + #endif \ No newline at end of file