Bound placed ore verification

This commit is contained in:
Daniar Mannanov 2026-08-17 22:52:59 +03:00
parent 56a1a5f8d6
commit 641da0e078

View file

@ -14,9 +14,8 @@ func TestPlacedOresUseStoneAndDeepslateTargets(t *testing.T) {
5308: "deepslate diamond ore", 5308: "deepslate diamond ore",
} }
counts := make(map[uint16]int) counts := make(map[uint16]int)
for cx := int32(-8); cx <= 8; cx += 4 { for _, pos := range [][2]int32{{-8, -8}, {4, -4}} {
for cz := int32(-8); cz <= 8; cz += 4 { chunk := gen(pos[0], pos[1])
chunk := gen(cx, cz)
for y := MinY; y < 128; y++ { for y := MinY; y < 128; y++ {
for x := 0; x < 16; x++ { for x := 0; x < 16; x++ {
for z := 0; z < 16; z++ { for z := 0; z < 16; z++ {
@ -25,7 +24,6 @@ func TestPlacedOresUseStoneAndDeepslateTargets(t *testing.T) {
} }
} }
} }
}
for state, name := range want { for state, name := range want {
if counts[state] == 0 { if counts[state] == 0 {
t.Errorf("no %s generated by placed ore features", name) t.Errorf("no %s generated by placed ore features", name)