diff options
author | Rob Pike <r@golang.org> | 2008-06-08 19:37:22 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2008-06-08 19:37:22 -0700 |
commit | 3086910f179b5e9dcbd728117a1a6f8682cedf85 (patch) | |
tree | d74ec8d360fb9da23baec776fc405f7e4523ed58 /test/float_lit.go | |
parent | 33f7637d6a6370a580401cef9a80b18af3cb6680 (diff) | |
download | go-git-3086910f179b5e9dcbd728117a1a6f8682cedf85.tar.gz |
fix bug in closeness for float literal test
SVN=121628
Diffstat (limited to 'test/float_lit.go')
-rw-r--r-- | test/float_lit.go | 2 |
1 files changed, 1 insertions, 1 deletions
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; |