redo
This commit is contained in:
@@ -112,22 +112,22 @@ public class MarkerTest {
|
||||
var g = Clues.createEmpty();
|
||||
|
||||
// Room for Right clue at (0,0) (length 8)
|
||||
assertTrue(Masker.hasRoomForClue(g,r0c0d1.slotKey));
|
||||
assertTrue(Masker.hasRoomForClue(g, r0c0d1.slotKey));
|
||||
|
||||
// No room for Right clue at (0,8) (length 0 < MIN_LEN)
|
||||
assertFalse(Masker.hasRoomForClue(g,r0c8d1.slotKey));
|
||||
assertFalse(Masker.hasRoomForClue(g, r0c8d1.slotKey));
|
||||
|
||||
// Blocked room
|
||||
// Let's place a clue that leaves only 1 cell for another clue.
|
||||
g.setClue(r0c2d1);
|
||||
// Now Right at (0,0) only has (0,1) available -> length 1 < MIN_LEN (which is 2)
|
||||
assertFalse(Masker.hasRoomForClue(g,r0c0d1.slotKey));
|
||||
assertFalse(Masker.hasRoomForClue(g, r0c0d1.slotKey));
|
||||
|
||||
// But enough room
|
||||
g.clearClueLo(0L);
|
||||
g.setClue(r0c3d1);
|
||||
// Now Right at (0,0) has (0,1), (0,2) -> length 2 == MIN_LEN
|
||||
assertTrue(Masker.hasRoomForClue(g,r0c0d1.slotKey));
|
||||
assertTrue(Masker.hasRoomForClue(g, r0c0d1.slotKey));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -307,7 +307,7 @@ public class MarkerTest {
|
||||
}, fillResult);
|
||||
|
||||
var rewards = new Rewards(10, 5, 1);
|
||||
var exported = puzzleResult.exportFormatFromFilled(rewards);
|
||||
var exported = puzzleResult.exportFormatFromFilled(rewards, Masker.IT, 3);
|
||||
|
||||
assertNotNull(exported);
|
||||
assertEquals(709, exported.difficulty());
|
||||
@@ -346,7 +346,7 @@ public class MarkerTest {
|
||||
var fillResult = new FillResult(true, 0, 0, 0, 0);
|
||||
var puzzleResult = new PuzzleResult(new Signa(clues), new Puzzle(grid, clues), new Slotinfo[0], fillResult);
|
||||
|
||||
var exported = puzzleResult.exportFormatFromFilled(new Rewards(0, 0, 0));
|
||||
var exported = puzzleResult.exportFormatFromFilled(new Rewards(0, 0, 0), Masker.IT, 3);
|
||||
|
||||
assertNotNull(exported);
|
||||
assertEquals(0, exported.words().length);
|
||||
|
||||
Reference in New Issue
Block a user