redo
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package puzzle;
|
||||
|
||||
import anno.ConstGen;
|
||||
import gen.Test123X_Neighbors4x3;
|
||||
import gen.Test123X_Neighbors9x8;
|
||||
import lombok.val;
|
||||
@@ -14,10 +15,12 @@ import puzzle.SwedishGenerator.Rng;
|
||||
import puzzle.dict800.DictData800;
|
||||
import java.util.Arrays;
|
||||
import java.util.stream.Collectors;
|
||||
import static precomp.Const9x8.Cell.r0c0d1;
|
||||
import static precomp.Const9x8.Cell.r1c0d1;
|
||||
import static precomp.Const9x8.Cell.r2c0d1;
|
||||
import static precomp.Const9x8.Cell.r3c0d1;
|
||||
import static precomp.Const3x4.Cell.r0c0d4;
|
||||
import static precomp.Const3x4.Cell.r0c2d0;
|
||||
import static precomp.Const3x4.Cell.r1c0d1;
|
||||
import static precomp.Const3x4.Cell.r2c0d1;
|
||||
import static precomp.Const3x4.Cell.r3c0d1;
|
||||
@ConstGen(C = 3, R = 4, packageName = "precomp", className = "Const3x4")
|
||||
public class TestDuplication {
|
||||
|
||||
@Test
|
||||
@@ -29,13 +32,13 @@ public class TestDuplication {
|
||||
@Test
|
||||
void testFiller2() {
|
||||
var mask = Signa.of(
|
||||
r0c0d1,
|
||||
r0c0d4, r0c2d0,
|
||||
r1c0d1,
|
||||
r2c0d1,
|
||||
r3c0d1);
|
||||
Assertions.assertEquals(4, mask.clueCount());
|
||||
Assertions.assertEquals(5, mask.clueCount());
|
||||
val map = mask.stream().collect(Collectors.toMap(Vestigium::index, Vestigium::clue));
|
||||
Assertions.assertEquals(4, map.size());
|
||||
Assertions.assertEquals(5, map.size());
|
||||
var slots = Masker_Neighbors3x4.slots(mask.c(), DictData800.DICT800);
|
||||
var grid = Masker_Neighbors3x4.grid(slots);
|
||||
var filled = SwedishGenerator.fillMask(new Rng(1), slots, grid.lo, grid.hi, grid.g);
|
||||
|
||||
Reference in New Issue
Block a user