diff --git a/app/src/test/java/sudoku/AppTest.java b/app/src/test/java/sudoku/AppTest.java deleted file mode 100644 index d687b40..0000000 --- a/app/src/test/java/sudoku/AppTest.java +++ /dev/null @@ -1,14 +0,0 @@ -/* - * This Java source file was generated by the Gradle 'init' task. - */ -package sudoku; - -import org.junit.jupiter.api.Test; -import static org.junit.jupiter.api.Assertions.*; - -class AppTest { - @Test void appHasAGreeting() { - App classUnderTest = new App(); - assertNotNull(classUnderTest.getGreeting(), "app should have a greeting"); - } -} diff --git a/app/src/test/java/sudoku/SolverTest.java b/app/src/test/java/sudoku/SolverTest.java new file mode 100644 index 0000000..ae16b4b --- /dev/null +++ b/app/src/test/java/sudoku/SolverTest.java @@ -0,0 +1,12 @@ +package sudoku; + +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; + +class SolverTest { + @Test void boardTest() { + Solver solver = new Solver(); + solver.solve(); + assertTrue(solver.isSolved()); + } +}