aboutsummaryrefslogtreecommitdiff
path: root/test/const.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-11-17 13:58:45 -0800
committerRuss Cox <rsc@golang.org>2008-11-17 13:58:45 -0800
commita1585b676bb13a36847beda61b94d32433d96715 (patch)
treea42f540201ae9ea978786ad92eaa17f107dd823f /test/const.go
parentb7f01f9f41c8aae377fc0592e9c6bed2e6fe577c (diff)
downloadgo-a1585b676bb13a36847beda61b94d32433d96715.tar.gz
go-a1585b676bb13a36847beda61b94d32433d96715.zip
fix the easy parts of bug120
R=r,ken DELTA=66 (52 added, 3 deleted, 11 changed) OCL=19386 CL=19389
Diffstat (limited to 'test/const.go')
-rw-r--r--test/const.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/const.go b/test/const.go
index f16a8c4b75..85c0a91b60 100644
--- a/test/const.go
+++ b/test/const.go
@@ -76,7 +76,7 @@ func ints() {
func floats() {
assert(f0 == c0, "f0");
assert(f1 == c1, "f1");
- assert(fhuge > fhuge_1, "fhuge");
+ assert(fhuge == fhuge_1, "fhuge"); // float64 can't distinguish fhuge, fhuge_1.
assert(fhuge_1 + 1 == fhuge, "fhuge 1");
assert(fhuge + fm1 +1 == fhuge, "fm1");
assert(f3div2 == 1.5, "3./2.");