From 31cb5f186363bf19422b08b9ba6dbbb892de1789 Mon Sep 17 00:00:00 2001 From: Habib Date: Wed, 7 Feb 2024 22:02:10 +0100 Subject: [PATCH] refactoring: Testvariablen verbessert --- src/test/test_funktionen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c index 5fadd1f..7cd291e 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -70,7 +70,9 @@ void test_2_toThePowerOf_7(void) int expected = 128; /* act */ - actual = power(2, 7); + int base = 2; + int exponent = 7; + actual = power(base, exponent); /* assert */ TEST_ASSERT_EQUAL_INT(expected, actual);