]> Cypherpunks repositories - gostls13.git/commitdiff
math: Change veryclose to close for Sinh and Exp tests.
authorDevon H. O'Dell <devon.odell@gmail.com>
Fri, 29 Jan 2010 20:54:05 +0000 (12:54 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 29 Jan 2010 20:54:05 +0000 (12:54 -0800)
Fixes #550.

R=rsc
CC=eds, golang-dev, jtomaschke
https://golang.org/cl/196063

src/pkg/math/all_test.go

index 97c52d3ebef8c2a76c8c3158ccad5c7cbbd17e2d..9490e06664d003c0242f4492aa9b4bd0b555df5e 100644 (file)
@@ -546,7 +546,7 @@ func TestCeil(t *testing.T) {
 
 func TestExp(t *testing.T) {
        for i := 0; i < len(vf); i++ {
-               if f := Exp(vf[i]); !veryclose(exp[i], f) {
+               if f := Exp(vf[i]); !close(exp[i], f) {
                        t.Errorf("Exp(%g) = %g, want %g\n", vf[i], f, exp[i])
                }
        }
@@ -654,7 +654,7 @@ func TestSin(t *testing.T) {
 
 func TestSinh(t *testing.T) {
        for i := 0; i < len(vf); i++ {
-               if f := Sinh(vf[i]); !veryclose(sinh[i], f) {
+               if f := Sinh(vf[i]); !close(sinh[i], f) {
                        t.Errorf("Sinh(%g) = %g, want %g\n", vf[i], f, sinh[i])
                }
        }