summaryrefslogtreecommitdiff
path: root/test/files/run/range.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/range.scala')
-rw-r--r--test/files/run/range.scala3
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);