- commit
- dfb0602199a7d7093f3fa7d311de3e88864bfa71
- parent
- 853e2a35e3b4c926075cc42ed1e08d32fdd6d46c
- author
- Dami <dami.etoile@gmail.com>
| M | games/ | 13 | +++++++++---- |
@@ -223,14 +223,19 @@ func TestNormalizeSingletonCagesCapsSingletons(t *testing.T) {
223223 }224224 225225 func TestSparseModesGenerateUniquePuzzlesWithLimitedSingletons(t *testing.T) {226- modeIndices := []int{2, 3, 4}227- sampleCount := 6226+ sampleCounts := map[int]int{227+ 2: 6,228+ 3: 6,229+ // Expert 9x9 has much costlier seeded generation paths, so one230+ // deterministic sample is enough to cover the post-generation invariants.231+ 4: 1,232+ }228233 sawZeroGivenCage := false229234 230- for _, idx := range modeIndices {235+ for _, idx := range []int{2, 3, 4} {231236 mode := Modes[idx].(Mode)232237 233- for sample := range sampleCount {238+ for sample := range sampleCounts[idx] {234239 rng := rand.New(rand.NewPCG(uint64(7000+idx*31+sample), uint64(8000+idx*37+sample)))235240 puzzle, err := mode.generatePuzzleSeeded(rng)236241 if err != nil {