From 7c5b8c6c36bc60b171e62eec648027fbc67ba64c Mon Sep 17 00:00:00 2001 From: Habib Date: Sat, 3 Feb 2024 03:19:47 +0100 Subject: [PATCH] =?UTF-8?q?Test=20f=C3=BCr=20power()=20erstellt?= 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 3046c03..7dc2b47 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -63,4 +63,17 @@ void test_24_divided_by_3(void) TEST_ASSERT_EQUAL_INT(expected, actual); } +void test_2_toThePowerOf_7(void) +{ + /* arrange */ + int actual; + int expected = 128; + + /* act */ + actual = power(2, 7); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} + #endif \ No newline at end of file