44 "math"
55 "testing"
66
7- "github.com/ojrac/opensimplex-go"
7+ // "github.com/ojrac/opensimplex-go"
88)
99
1010func TestConstants (t * testing.T ) {
@@ -23,20 +23,20 @@ func TestConstants(t *testing.T) {
2323 }
2424}
2525
26- func TestNoise2D (t * testing.T ) {
27- var seed int64 = 298610
28- x , y := 14.0 , 12.0
29- tolerance := math .Pow10 (- 14 )
30-
31- testNoise := NewNoise (seed )
32- testValue := testNoise .Noise2D (x , y )
33-
34- libNoise := opensimplex .New (seed )
35- libValue := libNoise .Eval2 (x , y )
36-
37- if math .Abs (testValue - libValue ) > tolerance {
38- t .Errorf ("Inconsistent noise result; got %f, expected %f" ,
39- testValue , libValue )
40- }
41-
42- }
26+ // func TestNoise2D(t *testing.T) {
27+ // var seed int64 = 298610
28+ // x, y := 14.0, 12.0
29+ // tolerance := math.Pow10(-14)
30+ //
31+ // testNoise := NewNoise(seed)
32+ // testValue := testNoise.Noise2D(x, y)
33+ //
34+ // libNoise := opensimplex.New(seed)
35+ // libValue := libNoise.Eval2(x, y)
36+ //
37+ // if math.Abs(testValue-libValue) > tolerance {
38+ // t.Errorf("Inconsistent noise result; got %f, expected %f",
39+ // testValue, libValue)
40+ // }
41+ //
42+ // }
0 commit comments