Gather data
This commit is contained in:
@@ -94,9 +94,9 @@ public class MainTest {
|
||||
grid.setCharAt(1, 2, '5');
|
||||
grid.setCharAt(2, 3, 'Z');
|
||||
|
||||
Assertions.assertEquals('A', grid.getCharAt(0, 0));
|
||||
Assertions.assertEquals('5', grid.getCharAt(1, 2));
|
||||
Assertions.assertEquals('Z', grid.getCharAt(2, 3));
|
||||
Assertions.assertEquals((byte) 'A', grid.byteAt(0, 0));
|
||||
Assertions.assertEquals((byte) '5', grid.byteAt(1, 2));
|
||||
Assertions.assertEquals((byte) 'Z', grid.byteAt(2, 3));
|
||||
Assertions.assertEquals(DASH, grid.byteAt(1, 1));
|
||||
|
||||
// Test isLetterAt
|
||||
@@ -127,11 +127,11 @@ public class MainTest {
|
||||
grid.setCharAt(1, 1, 'D');
|
||||
|
||||
var copy = grid.deepCopyGrid();
|
||||
Assertions.assertEquals('A', copy.getCharAt(0, 0));
|
||||
Assertions.assertEquals((byte) 'A', copy.byteAt(0, 0));
|
||||
|
||||
copy.setCharAt(0, 0, 'X');
|
||||
Assertions.assertEquals('X', copy.getCharAt(0, 0));
|
||||
Assertions.assertEquals('A', grid.getCharAt(0, 0)); // Original should be unchanged
|
||||
Assertions.assertEquals((byte) 'X', copy.byteAt(0, 0));
|
||||
Assertions.assertEquals((byte) 'A', grid.byteAt(0, 0)); // Original should be unchanged
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -168,7 +168,7 @@ public class MainTest {
|
||||
System.out.println("[DEBUG_LOG] Simplicity: " + res.filled().simplicity());
|
||||
System.out.println("[DEBUG_LOG] ClueMap Size: " + res.filled().clueMap().size());
|
||||
System.out.println("[DEBUG_LOG] Grid:");
|
||||
System.out.println(res.swe().renderHuman(res.filled().grid()));
|
||||
System.out.println(res.filled().grid().renderHuman());
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -193,8 +193,4 @@ public class MainTest {
|
||||
assertTrue(SwedishGenerator.isLetter((byte) 'Z'));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIsNotLetterLowercaseA() {
|
||||
assertFalse(SwedishGenerator.isLetter((byte) 'a'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user