From: Russ Cox Date: Tue, 2 Feb 2010 06:46:37 +0000 (-0800) Subject: math: change Cosh test to close, not veryclose (needed on some x86 chips) X-Git-Tag: weekly.2010-02-04~28 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b13b80e555c2e629eba5cfd27c672f84f93d50c1;p=gostls13.git math: change Cosh test to close, not veryclose (needed on some x86 chips) R=r CC=Charlie Dorian, golang-dev https://golang.org/cl/199054 --- diff --git a/src/pkg/math/all_test.go b/src/pkg/math/all_test.go index 59fdd9e1a7..fa9c4bd24f 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]) } }