1
0
mirror of https://github.com/golang/go synced 2024-11-22 03:24:41 -07:00

cmath test: fix format (%g does not print booleans)

R=ken
CC=golang-dev
https://golang.org/cl/4003041
This commit is contained in:
Rob Pike 2011-01-13 16:30:56 -08:00
parent 2a74009675
commit b814cca3c3

View File

@ -615,7 +615,7 @@ func TestExp(t *testing.T) {
func TestIsNaN(t *testing.T) { func TestIsNaN(t *testing.T) {
for i := 0; i < len(vcIsNaNSC); i++ { for i := 0; i < len(vcIsNaNSC); i++ {
if f := IsNaN(vcIsNaNSC[i]); isNaNSC[i] != f { if f := IsNaN(vcIsNaNSC[i]); isNaNSC[i] != f {
t.Errorf("IsNaN(%g) = %g, want %g", vcIsNaNSC[i], f, isNaNSC[i]) t.Errorf("IsNaN(%v) = %v, want %v", vcIsNaNSC[i], f, isNaNSC[i])
} }
} }
} }