diff options
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t3496.scala | 15 | ||||
-rw-r--r-- | test/files/run/t3508.scala | 11 |
2 files changed, 26 insertions, 0 deletions
diff --git a/test/files/run/t3496.scala b/test/files/run/t3496.scala new file mode 100644 index 0000000000..e1aa032ab1 --- /dev/null +++ b/test/files/run/t3496.scala @@ -0,0 +1,15 @@ + + + + +// ticket #3496 +object Test { + + def main(args: Array[String]) { + val s = Stream.from(1) + s.take(5) + s.drop(5) + s.splitAt(5) + } + +} diff --git a/test/files/run/t3508.scala b/test/files/run/t3508.scala new file mode 100644 index 0000000000..01d976ba0d --- /dev/null +++ b/test/files/run/t3508.scala @@ -0,0 +1,11 @@ + + +import collection.immutable._ + + +// ticket #3508 +object Test { + def main(args: Array[String]) { + assert(Stream.tabulate(123)(_ + 1).toList == List.tabulate(123)(_ + 1)) + } +} |