1
0
mirror of https://github.com/golang/go synced 2024-11-22 02:44:39 -07:00

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
This commit is contained in:
Russ Cox 2010-02-01 22:46:37 -08:00
parent a0690b69da
commit b13b80e555

View 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])
}
}