This commit is contained in:
adman
2026-07-05 20:53:59 +02:00
parent eab050e291
commit b4712ff5c6
3 changed files with 223 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
package gen
import "testing"
func TestSpline(t *testing.T) {
v := BiomeDepthSpline.Sample([]float32{0.236413047, 0.220234469, 0.139604524, -0.339296669})
if v != 0.025035858154296875 {
t.Errorf("bad value: %f", v)
}
}