From 940c9aecb2d08fe250a4428416435389ee4baaf1 Mon Sep 17 00:00:00 2001 From: Habib Date: Sat, 3 Feb 2024 02:34:41 +0100 Subject: [PATCH] =?UTF-8?q?Test=20f=C3=BCr=20subtract()=20erstellt,=20der?= =?UTF-8?q?=20auf=20die=20Subtraktion=20von=205=20und=202=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 cd2c30c..ba69ca8 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -37,4 +37,17 @@ void test_11_multiplied_by_11(void) TEST_ASSERT_EQUAL_INT(expected, actual); } +void test_5_minus_2(void) +{ + /* arrange */ + int actual; + int expected = 3; + + /* act */ + actual = subtract(5, 2); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} + #endif \ No newline at end of file