Gather data
This commit is contained in:
@@ -191,7 +191,7 @@ public class SwedishGeneratorTest {
|
||||
var grid = SwedishGenerator.makeEmptyGrid();
|
||||
// 3x3 grid (Config.PUZZLE_ROWS/COLS are 3 in test env)
|
||||
// Set '2' (right) at 0,0
|
||||
grid.setCharAt(0, 0, '2');
|
||||
grid.setClue(0, (byte) '2');
|
||||
// This should detect a slot starting at 0,1 with length 2 (0,1 and 0,2)
|
||||
|
||||
var slots = gen.extractSlots(grid);
|
||||
@@ -226,7 +226,7 @@ public class SwedishGeneratorTest {
|
||||
assertTrue(f1 >= 1_000_000_000L);
|
||||
|
||||
// Add a slot
|
||||
grid.setCharAt(0, 0, '2');
|
||||
grid.setClue(0, SwedishGenerator.OFFSETS[2].dbyte());
|
||||
var f2 = gen.maskFitness(grid, lenCounts);
|
||||
assertTrue(f2 < f1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user