From 716331f19bb76dd16c38dd7d251401bb8c4c8076 Mon Sep 17 00:00:00 2001 From: fdai6040 Date: Thu, 2 Feb 2023 12:02:10 +0100 Subject: [PATCH] Test Quersumme --- 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 00e5c38..8da67c4 100644 --- a/src/test/java/src/TasksFrameTest.java +++ b/src/test/java/src/TasksFrameTest.java @@ -103,6 +103,17 @@ class TasksFrameTest { assertEquals(1,p3); } + @Test + void test_quer(){ + TasksFrame tasksFrame = new TasksFrame(); + int q = tasksFrame.quer(15); + assertEquals(6, q); + int q2 = tasksFrame.quer(23); + assertEquals(5, q2); + int q3 = tasksFrame.quer(235); + assertEquals(10, q3); + + } }