diff options
author | Paul Phillips <paulp@improving.org> | 2010-02-18 19:00:46 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-02-18 19:00:46 +0000 |
commit | f592fb05203d0213243bbc072fe47a19856d1839 (patch) | |
tree | f4734b55c31ae497e3325e3f6d6d05e31b467575 /test/files/run | |
parent | 388a0c0d1db3e41e3acbebd6e1e4c79f7d176ca3 (diff) | |
download | scala-f592fb05203d0213243bbc072fe47a19856d1839.tar.gz scala-f592fb05203d0213243bbc072fe47a19856d1839.tar.bz2 scala-f592fb05203d0213243bbc072fe47a19856d1839.zip |
Made NumericRange invariant again, plus test case.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/range.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/files/run/range.scala b/test/files/run/range.scala index 65d33a6134..02b48fad7c 100644 --- a/test/files/run/range.scala +++ b/test/files/run/range.scala @@ -44,6 +44,9 @@ object Test { assert(NumericRange.inclusive(1, 10, 1) sameElements (1 to 10)) assert(NumericRange.inclusive(1, 100, 3) sameElements (1 to 100 by 3)) + // #2518 + assert((3L to 7 by 2) sameElements List(3L, 5L, 7L)) + rangeForeach(1 to 10); rangeForeach(1 until 10); rangeForeach(10 to 1 by -1); |