Working parser, file chooser and sample files
This commit is contained in:
parent
175545d3d5
commit
521b3fb05b
6 changed files with 163 additions and 4 deletions
17
app/src/test/java/sudoku/SudokuParserTest.java
Normal file
17
app/src/test/java/sudoku/SudokuParserTest.java
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package sudoku;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
public class SudokuParserTest {
|
||||
@Test
|
||||
void constructorTest() {
|
||||
int[][] board;
|
||||
try {
|
||||
board = SudokuParser.parseSudoku("sample_sudokus/demo_from_lab.txt");
|
||||
} catch (Exception e) {
|
||||
board = null;
|
||||
}
|
||||
assertNotNull(board);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue