Some example tests

This commit is contained in:
Imbus 2023-12-05 13:14:25 +01:00
parent d94bc05a4d
commit da983e438b
2 changed files with 12 additions and 14 deletions

View file

@ -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");
}
}

View 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());
}
}