Gather data
This commit is contained in:
@@ -40,7 +40,7 @@ public class ExportFormatTest {
|
||||
// Terminate thGrid.offset(e slot at) (0,5) with another digit to avoid it extending to MAX_WORD_LENGTH
|
||||
grid.setClue(Grid.offset(0, 5), (byte) '1');
|
||||
|
||||
var fillResult = new FillResult(true, new Gridded(grid), clueMap, null);
|
||||
var fillResult = new FillResult(true, new Gridded(grid), clueMap, new FillStats());
|
||||
var puzzleResult = new PuzzleResult(swe, null, null, fillResult);
|
||||
|
||||
var rewards = new Rewards(10, 5, 1);
|
||||
@@ -80,7 +80,7 @@ public class ExportFormatTest {
|
||||
void testExportFormatEmpty() {
|
||||
var swe = new SwedishGenerator(new Rng(0));
|
||||
var grid = Grid.createEmpty();
|
||||
var fillResult = new FillResult(true, new Gridded(grid), new HashMap<>(), null);
|
||||
var fillResult = new FillResult(true, new Gridded(grid), new HashMap<>(), new FillStats());
|
||||
var puzzleResult = new PuzzleResult(swe, null, null, fillResult);
|
||||
|
||||
var exported = puzzleResult.exportFormatFromFilled(1, new Rewards(0, 0, 0));
|
||||
|
||||
@@ -152,7 +152,7 @@ public class MainTest {
|
||||
if (res != null && res.filled().ok()) {
|
||||
foundSeed = seed;
|
||||
System.out.println("[DEBUG_LOG] Seed found: " + seed);
|
||||
System.out.println("[DEBUG_LOG] Simplicity: " + res.filled().simplicity());
|
||||
System.out.println("[DEBUG_LOG] Simplicity: " + res.filled().stats().simplicity);
|
||||
System.out.println("[DEBUG_LOG] ClueMap Size: " + res.filled().clueMap().size());
|
||||
System.out.println("[DEBUG_LOG] Grid:");
|
||||
System.out.println(res.filled().grid().renderHuman());
|
||||
@@ -167,7 +167,7 @@ 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(758.55, res.filled().simplicity(), 1e-9, "Simplicity value changed");
|
||||
Assertions.assertEquals(758.55, res.filled().stats().simplicity, 1e-9, "Simplicity value changed");
|
||||
Assertions.assertArrayEquals(new byte[]{ 'M', 'A', 'N', 'T', 'A' }, res.filled().clueMap().get(849).word());
|
||||
}
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user