summaryrefslogtreecommitdiff
path: root/src/pkg/math
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-02-01 22:46:37 -0800
committerRuss Cox <rsc@golang.org>2010-02-01 22:46:37 -0800
commita0737a07c2e95132c32f0ac6f32bb811bd23c537 (patch)
treed58de26ef5c9ccdfa56d52f713bbcdb3fd6d3d61 /src/pkg/math
parentf1ad43664b0aaa6451fc18aa45dbfb46a2f15668 (diff)
downloadgolang-a0737a07c2e95132c32f0ac6f32bb811bd23c537.tar.gz
math: change Cosh test to close, not veryclose (needed on some x86 chips)
R=r CC=Charlie Dorian, golang-dev http://codereview.appspot.com/199054
Diffstat (limited to 'src/pkg/math')
-rw-r--r--src/pkg/math/all_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/math/all_test.go b/src/pkg/math/all_test.go
index 59fdd9e1a..fa9c4bd24 100644
--- a/src/pkg/math/all_test.go
+++ b/src/pkg/math/all_test.go
@@ -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])
}
}