From: Rob Pike Date: Mon, 9 Jun 2008 02:37:22 +0000 (-0700) Subject: fix bug in closeness for float literal test X-Git-Tag: weekly.2009-11-06~3713 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3086910f179b5e9dcbd728117a1a6f8682cedf85;p=gostls13.git fix bug in closeness for float literal test SVN=121628 --- diff --git a/test/float_lit.go b/test/float_lit.go index c45de9b4c1..a7ef12390a 100644 --- a/test/float_lit.go +++ b/test/float_lit.go @@ -23,7 +23,7 @@ close(a, b double) bool if e < 0 { e = -e; } - if e*1.0e-14 < d { + if e*1.0e-14 > d { return true; } return false; diff --git a/test/golden.out b/test/golden.out index 68be563f43..ef00c14da4 100644 --- a/test/golden.out +++ b/test/golden.out @@ -2,8 +2,6 @@ =========== ./char_lit.go =========== ./float_lit.go -+10. is printfloat should be printfloat -BUG: known to fail incorrectly =========== ./for.go