]> Cypherpunks repositories - gostls13.git/commitdiff
math: change Cosh test to close, not veryclose (needed on some x86 chips)
authorRuss Cox <rsc@golang.org>
Tue, 2 Feb 2010 06:46:37 +0000 (22:46 -0800)
committerRuss Cox <rsc@golang.org>
Tue, 2 Feb 2010 06:46:37 +0000 (22:46 -0800)
R=r
CC=Charlie Dorian, golang-dev
https://golang.org/cl/199054

src/pkg/math/all_test.go

index 59fdd9e1a7a06c65d0fd373e453a2f86d61ffdd8..fa9c4bd24f8fb09faa5c04c7131b9354649a16f6 100644 (file)
@@ -832,7 +832,7 @@ func TestCos(t *testing.T) {
 
 func TestCosh(t *testing.T) {
        for i := 0; i < len(vf); i++ {
-               if f := Cosh(vf[i]); !veryclose(cosh[i], f) {
+               if f := Cosh(vf[i]); !close(cosh[i], f) {
                        t.Errorf("Cosh(%g) = %g, want %g\n", vf[i], f, cosh[i])
                }
        }