From ff2b644964b7bb003136f1acd4a98d253c2586fa Mon Sep 17 00:00:00 2001 From: Habib Date: Sat, 3 Feb 2024 02:08:13 +0100 Subject: [PATCH] =?UTF-8?q?Test=20f=C3=BCr=20addThreeNumbers()=20erstellt,?= =?UTF-8?q?=20der=20auf=20die=20Addition=20von=20500,=20249,=20und=20251?= =?UTF-8?q?=20testet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/test_funktionen.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c index 0729a16..0d2d5c9 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -11,6 +11,17 @@ void tearDown(void) { } +void test_1000_plus_1(void) +{ + /* arrange */ + int actual; + int expected = 1000; + + /* act */ + actual = addThreeNumbers(500, 249, 251); + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} #endif \ No newline at end of file