tests: make it faster

This commit is contained in:
2025-01-29 14:59:06 +01:00
parent a10d2eda9a
commit ed9b636b58

View File

@@ -41,18 +41,15 @@ public class SudokuSerializerTest {
Random r = new Random(); Random r = new Random();
int testCount = 5; int testCount = 5;
for (int i = 0; i < testCount; i++) { for (int i = 0; i < testCount; i++) {
int blockWidth = r.nextInt(20) + 1; int blockWidth = r.nextInt(10) + 1;
int blockHeight = r.nextInt(20) + 1; int blockHeight = r.nextInt(10) + 1;
testSerializeWithSize(blockWidth, blockHeight); testSerializeWithSize(blockWidth, blockHeight);
} }
for (int i = 0; i < testCount; i++) { for (int i = 0; i < testCount; i++) {
int blockWidth = r.nextInt(20) + 1; int blockWidth = r.nextInt(10) + 1;
int blockHeight = r.nextInt(20) + 1; int blockHeight = r.nextInt(10) + 1;
testSaveWithSize(blockWidth, blockHeight); testSaveWithSize(blockWidth, blockHeight);
} }
} }
} }