Working parser, file chooser and sample files

This commit is contained in:
Imbus 2023-12-10 15:54:20 +01:00
parent 175545d3d5
commit 521b3fb05b
6 changed files with 163 additions and 4 deletions

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