Browse Source

added deleted test back to project

remotes/origin/develop
fdai6499 2 years ago
parent
commit
3ba98ddd3b
  1. 2
      src/main/java/src/Model.java
  2. 12
      src/test/java/src/TasksFrameTest.java

2
src/main/java/src/Model.java

@ -350,6 +350,8 @@ public class Model {
}
public void createNewGame(String difficulty) {
JSONObject jsonObject = modelToJson();
}
}

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

Loading…
Cancel
Save