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); + + } + }