From 419d343c52ce084d219f93c41f702d8c8ec9ef51 Mon Sep 17 00:00:00 2001 From: fdai7820 Date: Thu, 8 Feb 2024 20:02:19 +0100 Subject: [PATCH] Test Exponenten --- .../test_duellist_spielesammlung_projekt.c | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/src/test/test_duellist_spielesammlung_projekt.c b/src/test/test_duellist_spielesammlung_projekt.c index 67a9fdf..d3bde68 100644 --- a/src/test/test_duellist_spielesammlung_projekt.c +++ b/src/test/test_duellist_spielesammlung_projekt.c @@ -576,6 +576,85 @@ void test_compare_aGreaterThanB(void) /* assert */ TEST_ASSERT_EQUAL_INT(1, result); } + +void test_exponentiation(void) +{ + /* arrange */ + int base = 2; + int exponent = 3; + + /* act */ + int result = exponentiation(base, exponent); + + /* assert */ + TEST_ASSERT_EQUAL_INT(8, result); +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +