From b739679bc06fa700ded453f330c607ff33438e8b Mon Sep 17 00:00:00 2001 From: fdai7446 <––fdai7446@fhfddvz1.rz.hs-fulda.de> Date: Fri, 10 Feb 2023 21:21:12 +0100 Subject: [PATCH] testPotenzieren --- TaschenrechnerTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TaschenrechnerTest.java b/TaschenrechnerTest.java index 072e30e..f40636e 100644 --- a/TaschenrechnerTest.java +++ b/TaschenrechnerTest.java @@ -38,7 +38,12 @@ public class TaschenrechnerTest { @Test public void testPotenzieren() { + int a = 2; + int b = 3; + int ab = (int)Math.pow(a, b); + int result = Taschenrechner.potenzieren(a, b); + assertEquals(ab, result); } @Test