Gather data

This commit is contained in:
mike
2026-01-09 22:25:15 +01:00
parent 2ec023b49d
commit 183216e753
5 changed files with 75 additions and 73 deletions

View File

@@ -24,7 +24,7 @@ public class MainTest {
@Test
void testExtractSlots() {
var generator = new SwedishGenerator();
var grid = makeEmptyGrid();
var grid = Grid.createEmpty();
// Set up digits on the grid to create slots.
// '2' (right) at (0,0) -> slot at (0,1), (0,2)
@@ -60,7 +60,7 @@ public class MainTest {
@Test
void testForEachSlot() {
var generator = new SwedishGenerator();
var grid = makeEmptyGrid();
var grid = Grid.createEmpty();
grid.setClue(0, (byte) '2'); // right
var count = new AtomicInteger(0);
@@ -82,7 +82,7 @@ public class MainTest {
}
@Test
public void testGridBasics() {
var grid = makeEmptyGrid();
var grid = Grid.createEmpty();
// Test set/get
grid.setCharAt(0, 0, 'A');
@@ -115,7 +115,7 @@ public class MainTest {
@Test
public void testGridDeepCopy() {
var grid = makeEmptyGrid();
var grid = Grid.createEmpty();
grid.setCharAt(0, 0, 'A');
grid.setCharAt(0, 1, 'B');
grid.setCharAt(1, 0, 'C');
@@ -131,7 +131,7 @@ public class MainTest {
@Test
public void testMini() {
var grid = makeEmptyGrid();
var grid = Grid.createEmpty();
grid.setCharAt(1, 1, '1');
Assertions.assertTrue(grid.isDigitAt(1, 1));
}
@@ -148,7 +148,7 @@ public class MainTest {
opts.tries = 1;
opts.verbose = false;
var dict = loadWords(opts.wordsPath);
var dict = Dict.loadDict(opts.wordsPath);
// Act
PuzzleResult res = null;