Skip to content

Commit d387646

Browse files
author
Elli Beres
committed
Merge remote-tracking branch 'refs/remotes/origin/main'
2 parents 0c8632e + a1cbaa5 commit d387646

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/ellifteria/opensimplex2d-go
22

33
go 1.20
44

5-
require github.com/ojrac/opensimplex-go v1.0.2
5+
//require github.com/ojrac/opensimplex-go v1.0.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/ojrac/opensimplex-go v1.0.2 h1:l4vs0D+JCakcu5OV0kJ99oEaWJfggSc9jiLpxaWvSzs=
2-
github.com/ojrac/opensimplex-go v1.0.2/go.mod h1:NwbXFFbXcdGgIFdiA7/REME+7n/lOf1TuEbLiZYOWnM=
1+
//github.com/ojrac/opensimplex-go v1.0.2 h1:l4vs0D+JCakcu5OV0kJ99oEaWJfggSc9jiLpxaWvSzs=
2+
//github.com/ojrac/opensimplex-go v1.0.2/go.mod h1:NwbXFFbXcdGgIFdiA7/REME+7n/lOf1TuEbLiZYOWnM=

opensimplex2d_test.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"math"
55
"testing"
66

7-
"github.com/ojrac/opensimplex-go"
7+
//"github.com/ojrac/opensimplex-go"
88
)
99

1010
func 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

Comments
 (0)