fix tests
Some checks failed
Linux arm64 / Build (push) Failing after 29s

This commit is contained in:
2025-02-02 15:41:29 +01:00
parent ac4f859fd8
commit 0f5020b0b4
4 changed files with 68 additions and 45 deletions

View File

@@ -58,18 +58,20 @@ public class SudokuSerializerTest {
void testSerialize() {
Random r = new Random();
int testCount = 20;
int minSize = 2;
int maxSize = 3;
for (int i = 0; i < testCount; i++) {
int blockWidth = r.nextInt(10) + 1;
int blockHeight = r.nextInt(10) + 1;
int blockWidth = r.nextInt(maxSize - minSize + 1) + minSize;
int blockHeight = r.nextInt(maxSize - minSize + 1) + minSize;
testSerializeWithSize(blockWidth, blockHeight);
}
for (int i = 0; i < testCount; i++) {
int blockWidth = r.nextInt(10) + 1;
int blockHeight = r.nextInt(10) + 1;
int blockWidth = r.nextInt(maxSize - minSize + 1) + minSize;
int blockHeight = r.nextInt(maxSize - minSize + 1) + minSize;
testSaveWithSize(blockWidth, blockHeight);
}
for (int i = 0; i < testCount; i++) {
int size = r.nextInt(10) + 1;
int size = r.nextInt(maxSize - minSize + 1) + minSize;
testSerializeX(size);
}
}