From 3ba98ddd3badc0ab82842f19fe99ea7d08602090 Mon Sep 17 00:00:00 2001 From: fdai6499 Date: Thu, 2 Feb 2023 12:46:35 +0100 Subject: [PATCH] added deleted test back to project --- src/main/java/src/Model.java | 2 ++ src/test/java/src/TasksFrameTest.java | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/main/java/src/Model.java b/src/main/java/src/Model.java index bfed87c..302f9b5 100644 --- a/src/main/java/src/Model.java +++ b/src/main/java/src/Model.java @@ -350,6 +350,8 @@ public class Model { } public void createNewGame(String difficulty) { + JSONObject jsonObject = modelToJson(); + } } diff --git a/src/test/java/src/TasksFrameTest.java b/src/test/java/src/TasksFrameTest.java index d20745d..5eef25f 100644 --- a/src/test/java/src/TasksFrameTest.java +++ b/src/test/java/src/TasksFrameTest.java @@ -103,6 +103,18 @@ 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); + + } + }