From 1006cb79684dd400918e4bcc2f42f3a0632cc6f9 Mon Sep 17 00:00:00 2001 From: fdai6040 Date: Fri, 3 Feb 2023 13:39:45 +0100 Subject: [PATCH] Test "Potenzrechner" --- src/test/java/src/TasksFrameTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/java/src/TasksFrameTest.java b/src/test/java/src/TasksFrameTest.java index 26872fc..e1b47cc 100644 --- a/src/test/java/src/TasksFrameTest.java +++ b/src/test/java/src/TasksFrameTest.java @@ -169,6 +169,17 @@ class TasksFrameTest { double c = tasksFrame.bmi(1.24, 30); assertEquals(19.51, c); } + + @Test + void test_expo(){ + TasksFrame tasksFrame = new TasksFrame(); + double a = tasksFrame.expo(2, 3); + assertEquals(8, a); + double b = tasksFrame.expo(15, 3); + assertEquals(3375, b); + double c = tasksFrame.expo(10, 0); + assertEquals(1, c); + } }