summaryrefslogtreecommitdiff
path: root/test/files/run/t3645.scala
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2010-07-12 08:29:45 +0000
committerPhilipp Haller <hallerp@gmail.com>2010-07-12 08:29:45 +0000
commita02ff1ac0e7cac2dccaf7351a22876438eb84d66 (patch)
treec97a14ffb9a3a0a67811c53095750a144f39dc27 /test/files/run/t3645.scala
parent029482c86e4940bb47a195eea13d9f66faeb2c66 (diff)
downloadscala-a02ff1ac0e7cac2dccaf7351a22876438eb84d66.tar.gz
scala-a02ff1ac0e7cac2dccaf7351a22876438eb84d66.tar.bz2
scala-a02ff1ac0e7cac2dccaf7351a22876438eb84d66.zip
Added test case for #3645. Closes #3645.
Diffstat (limited to 'test/files/run/t3645.scala')
-rw-r--r--test/files/run/t3645.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/t3645.scala b/test/files/run/t3645.scala
new file mode 100644
index 0000000000..af2543377b
--- /dev/null
+++ b/test/files/run/t3645.scala
@@ -0,0 +1,6 @@
+object Test {
+ def main(args: Array[String]) {
+ val s = Stream.tabulate(5)(x => x+2)
+ assert( s.toList == List(2,3,4,5,6) )
+ }
+}