Skip to content

Commit

Permalink
Adapted the code suggested by gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Celineyaa committed Apr 4, 2024
1 parent 17f1677 commit c932975
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
17 changes: 1 addition & 16 deletions src/test/java/seedu/duke/CheckerTest.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package seedu.duke;
import static org.junit.jupiter.api.Assertions.assertTrue;


import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertFalse;
public class CheckerTest {
private Checker checker;
@org.junit.jupiter.api.Test
Expand All @@ -26,17 +24,4 @@ public void testCheckCorrectness_withIncorrectAnswer() {
assertFalse(result, "Expected false for incorrect answer");
}

/*
This case may be unavailable currently since there's no access to the user answer
May need access to user answer and allow modification for testing purpose.
*/

// public static void testGetWrongAnswer() {
// Checker checker = new Checker(new Test("+",1,2,1));
// checker.getUserAnswer();
// List<String> wrongAnswer = checker.getWrongAnswer();
// assertNotNull(wrongAnswer, "Expected non-null list of wrong answers");
// assertFalse(wrongAnswer.isEmpty(), "Expected non-empty list of wrong answers");
// }

}
6 changes: 1 addition & 5 deletions src/test/java/seedu/duke/UiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;


import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.PrintStream;
import java.util.ArrayList;


import static org.junit.jupiter.api.Assertions.assertEquals;

Expand Down

0 comments on commit c932975

Please sign in to comment.