mirror of
https://github.com/golang/go
synced 2024-11-22 02:04:40 -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:
parent
a0690b69da
commit
b13b80e555
@ -832,7 +832,7 @@ func TestCos(t *testing.T) {
|
|||||||
|
|
||||||
func TestCosh(t *testing.T) {
|
func TestCosh(t *testing.T) {
|
||||||
for i := 0; i < len(vf); i++ {
|
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])
|
t.Errorf("Cosh(%g) = %g, want %g\n", vf[i], f, cosh[i])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user