Gather data

This commit is contained in:
mike
2025-12-28 09:54:18 +01:00
parent de7e34d594
commit 944320a2d2
6 changed files with 125 additions and 73 deletions

View File

@@ -1,29 +0,0 @@
package puzzle;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class MainTest {
@Test
public void testGeneratePuzzle() {
// Arrange
var opts = new Main.Opts();
opts.seed = 1234;
opts.pop = 18;
opts.gens = 300;
opts.wordsPath = "src/test/resources/puzzle/pool.txt";
opts.minSimplicity = 0;
opts.threads = 1;
opts.tries = 1;
// Act
var result = Main.generatePuzzle(opts);
// Assert
assertNotNull(result);
assertNotNull(result.mask());
assertNotNull(result.filled());
assertTrue(result.filled().ok);
}
}