summaryrefslogtreecommitdiff
path: root/test/files/run/bug3529.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-06-04 05:16:08 +0000
committerPaul Phillips <paulp@improving.org>2010-06-04 05:16:08 +0000
commit245ec93fb132d2597a05d7ae9e081cd1adf356a3 (patch)
treed95b29ec9e3ee9a9b99cdba054bfe4f0e9d70b92 /test/files/run/bug3529.scala
parentebb6c4a2d9d882ea258ac64afb5235041f4f40ab (diff)
downloadscala-245ec93fb132d2597a05d7ae9e081cd1adf356a3.tar.gz
scala-245ec93fb132d2597a05d7ae9e081cd1adf356a3.tar.bz2
scala-245ec93fb132d2597a05d7ae9e081cd1adf356a3.zip
Burned by a last minute adjustment, I lost the ...
Burned by a last minute adjustment, I lost the downward counting direction. It is a seriously fiddly process to adjust Range and I don't recommend it to anyone. Closes #3529 over again. Review by prokopec.
Diffstat (limited to 'test/files/run/bug3529.scala')
-rw-r--r--test/files/run/bug3529.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/run/bug3529.scala b/test/files/run/bug3529.scala
index 4d83bcfa22..bb82424bf6 100644
--- a/test/files/run/bug3529.scala
+++ b/test/files/run/bug3529.scala
@@ -3,6 +3,8 @@ object Test {
assert(1 to 10 drop 10 isEmpty)
assert(1 until 10 drop 9 isEmpty)
assert(1 to 10 by 2 drop 5 isEmpty)
+ assert(10 to 1 by -1 drop 10 isEmpty)
+ assert((10 to 1 by -1 drop 9) == Seq(1))
assert((1 to 10 drop 9) == Seq(10))
assert((1 until 10 drop 9) == Nil)