Gather data
This commit is contained in:
@@ -28,7 +28,7 @@ public class MainTest {
|
||||
|
||||
// Set up digits on the grid to create slots.
|
||||
// '2' (right) at (0,0) -> slot at (0,1), (0,2)
|
||||
grid.setCharAt(0, 0, '2');
|
||||
grid.setClue(0, (byte) '2');
|
||||
grid.setCharAt(0, 1, 'A');
|
||||
grid.setCharAt(0, 2, 'B');
|
||||
|
||||
@@ -61,7 +61,7 @@ public class MainTest {
|
||||
void testForEachSlot() {
|
||||
var generator = new SwedishGenerator();
|
||||
var grid = makeEmptyGrid();
|
||||
grid.setCharAt(0, 0, '2'); // right
|
||||
grid.setClue(0, (byte) '2'); // right
|
||||
|
||||
var count = new AtomicInteger(0);
|
||||
generator.forEachSlot(grid, (key, packedPos, len) -> {
|
||||
@@ -175,8 +175,8 @@ public class MainTest {
|
||||
// Regression baseline for seed search starting at 12347, pop 4, gens 20
|
||||
Assertions.assertEquals(12347, foundSeed, "Found seed changed");
|
||||
Assertions.assertEquals(20, res.filled().clueMap().size(), "Number of assigned words changed");
|
||||
Assertions.assertEquals(763.8, res.filled().simplicity(), 1e-9, "Simplicity value changed");
|
||||
Assertions.assertArrayEquals(new byte[]{ 'M', 'A', 'N', 'T', 'A' }, res.filled().clueMap().get(1377).word());
|
||||
Assertions.assertEquals(775.45, res.filled().simplicity(), 1e-9, "Simplicity value changed");
|
||||
Assertions.assertArrayEquals(new byte[]{ 'I', 'N', 'E', 'R', 'T' }, res.filled().clueMap().get(1377).word());
|
||||
}
|
||||
@Test
|
||||
public void testIsLetterA() {
|
||||
|
||||
Reference in New Issue
Block a user