Gather data
This commit is contained in:
@@ -8,6 +8,7 @@ import puzzle.SwedishGenerator.Lemma;
|
||||
import puzzle.SwedishGenerator.PuzzleResult;
|
||||
import puzzle.SwedishGenerator.Rng;
|
||||
import static puzzle.Main.indentLines;
|
||||
import static puzzle.SwedishGenerator.C_DASH;
|
||||
|
||||
public class MainTest {
|
||||
|
||||
@@ -15,7 +16,6 @@ public class MainTest {
|
||||
MainTest t = new MainTest();
|
||||
t.testGridBasics();
|
||||
t.testGridDeepCopy();
|
||||
t.testGridOffset();
|
||||
t.testMini();
|
||||
t.testAttempt();
|
||||
}
|
||||
@@ -26,7 +26,7 @@ public class MainTest {
|
||||
// Initialize with #
|
||||
for (int r = 0; r < 3; r++) {
|
||||
for (int c = 0; c < 4; c++) {
|
||||
grid.setCharAt(r, c, '#');
|
||||
grid.setCharAt(r, c, C_DASH);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ public class MainTest {
|
||||
Assertions.assertEquals('A', grid.getCharAt(0, 0));
|
||||
Assertions.assertEquals('5', grid.getCharAt(1, 2));
|
||||
Assertions.assertEquals('Z', grid.getCharAt(2, 3));
|
||||
Assertions.assertEquals('#', grid.getCharAt(1, 1));
|
||||
Assertions.assertEquals(C_DASH, grid.getCharAt(1, 1));
|
||||
|
||||
// Test isLetterAt
|
||||
Assertions.assertTrue(grid.isLetterAt(0, 0));
|
||||
@@ -74,13 +74,6 @@ public class MainTest {
|
||||
Assertions.assertEquals('A', grid.getCharAt(0, 0)); // Original should be unchanged
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGridOffset() {
|
||||
var grid = new Grid(new byte[10 * 10], 10, 10);
|
||||
Assertions.assertEquals(0, grid.getOffset(0, 0));
|
||||
Assertions.assertEquals(11, grid.getOffset(1, 1));
|
||||
Assertions.assertEquals(99, grid.getOffset(9, 9));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMini() {
|
||||
@@ -88,7 +81,7 @@ public class MainTest {
|
||||
grid.setCharAt(1, 1, '1');
|
||||
Assertions.assertTrue(grid.isDigitAt(1, 1));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAttempt() {
|
||||
// Arrange
|
||||
var opts = new Main.Opts();
|
||||
|
||||
Reference in New Issue
Block a user