summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-05-20 13:41:33 +0000
committerPaul Phillips <paulp@improving.org>2010-05-20 13:41:33 +0000
commit4debc5bf1e89a8cb185fd7af1adf1c81c0e95e0c (patch)
tree9dc3caafe53cd9e88fd59ac865c64a40a4ae3b38 /test
parentb96804031a11f36ae00acc3020a7ed338b926abe (diff)
downloadscala-4debc5bf1e89a8cb185fd7af1adf1c81c0e95e0c.tar.gz
scala-4debc5bf1e89a8cb185fd7af1adf1c81c0e95e0c.tar.bz2
scala-4debc5bf1e89a8cb185fd7af1adf1c81c0e95e0c.zip
Fixed a BigDecimal/Long comparison bug reported...
Fixed a BigDecimal/Long comparison bug reported on the list. No review.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/equality.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/run/equality.scala b/test/files/run/equality.scala
index 6498b232e1..ff59898821 100644
--- a/test/files/run/equality.scala
+++ b/test/files/run/equality.scala
@@ -34,5 +34,7 @@ object Test
// negatives
val bigLong = new java.util.concurrent.atomic.AtomicLong(Long.MaxValue)
assert(-1 != bigLong && bigLong != -1) // bigLong.intValue() == -1
+ assert(BigDecimal(1.1) != 1L)
+ assert(1L != BigDecimal(1.1))
}
}