Update expanded world boundary test

This commit is contained in:
Admin 2026-09-21 06:21:46 +00:00
parent ce8c8333cc
commit e5571b9dee

View File

@ -25,7 +25,7 @@ func TestTransformSanitizers(t *testing.T) {
if got := clampFloat(-5, 0, worldSize); got != 0 { if got := clampFloat(-5, 0, worldSize); got != 0 {
t.Fatalf("clamp low=%v", got) t.Fatalf("clamp low=%v", got)
} }
if got := clampFloat(4000, 0, worldSize); got != worldSize { if got := clampFloat(6000, 0, worldSize); got != worldSize {
t.Fatalf("clamp high=%v", got) t.Fatalf("clamp high=%v", got)
} }
if got := clampFloat(math.NaN(), 0, worldSize); got != 0 { if got := clampFloat(math.NaN(), 0, worldSize); got != 0 {