]> Cypherpunks repositories - gostls13.git/commitdiff
fix bug in closeness for float literal test
authorRob Pike <r@golang.org>
Mon, 9 Jun 2008 02:37:22 +0000 (19:37 -0700)
committerRob Pike <r@golang.org>
Mon, 9 Jun 2008 02:37:22 +0000 (19:37 -0700)
SVN=121628

test/float_lit.go
test/golden.out

index c45de9b4c1808b8f002620fe425357049088691b..a7ef12390a3552d4d0abf8ecdb77ee644d1c81fa 100644 (file)
@@ -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;
index 68be563f43e4d470147f4890c7915499525553ae..ef00c14da4925a156fbd98951d4dd7b8994b96ea 100644 (file)
@@ -2,8 +2,6 @@
 =========== ./char_lit.go
 
 =========== ./float_lit.go
-+10. is printfloat should be printfloat
-BUG: known to fail incorrectly
 
 =========== ./for.go