Some example tests
This commit is contained in:
parent
d94bc05a4d
commit
da983e438b
2 changed files with 12 additions and 14 deletions
|
@ -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");
|
||||
}
|
||||
}
|
12
app/src/test/java/sudoku/SolverTest.java
Normal file
12
app/src/test/java/sudoku/SolverTest.java
Normal file
|
@ -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());
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue