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

math: Change veryclose to close for Sinh and Exp tests.

Fixes #550.

R=rsc
CC=eds, golang-dev, jtomaschke
https://golang.org/cl/196063
This commit is contained in:
Devon H. O'Dell 2010-01-29 12:54:05 -08:00 committed by Russ Cox
parent 05f26366e5
commit 4ffbff14b3

View File

@ -546,7 +546,7 @@ func TestCeil(t *testing.T) {
func TestExp(t *testing.T) { func TestExp(t *testing.T) {
for i := 0; i < len(vf); i++ { 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]) 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) { func TestSinh(t *testing.T) {
for i := 0; i < len(vf); i++ { 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]) t.Errorf("Sinh(%g) = %g, want %g\n", vf[i], f, sinh[i])
} }
} }