summaryrefslogtreecommitdiff
path: root/src/pkg/math/all_test.go
diff options
context:
space:
mode:
authorDevon H. O'Dell <devon.odell@gmail.com>2010-01-29 12:54:05 -0800
committerDevon H. O'Dell <devon.odell@gmail.com>2010-01-29 12:54:05 -0800
commit5c8d3ad8a4123618ec22a2852deba231cd6a7388 (patch)
treef58459bc80297a2a10d7fdee48e71d8c4758906a /src/pkg/math/all_test.go
parentc3f3b08935767b5399e99053cceef9070d8a6df8 (diff)
downloadgolang-5c8d3ad8a4123618ec22a2852deba231cd6a7388.tar.gz
math: Change veryclose to close for Sinh and Exp tests.
Fixes issue 550. R=rsc CC=eds, golang-dev, jtomaschke http://codereview.appspot.com/196063 Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/pkg/math/all_test.go')
-rw-r--r--src/pkg/math/all_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/math/all_test.go b/src/pkg/math/all_test.go
index 97c52d3eb..9490e0666 100644
--- a/src/pkg/math/all_test.go
+++ b/src/pkg/math/all_test.go
@@ -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])
}
}