summaryrefslogtreecommitdiff
path: root/test/files/run/t3516.scala
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2014-09-05 00:24:27 -0700
committerSom Snytt <som.snytt@gmail.com>2014-11-11 07:33:52 -0800
commitda60dda202f386ed85fa15bf8fe02252d4dfb911 (patch)
treee452ff2e24d9ac3ff0c5441b269e974323e88644 /test/files/run/t3516.scala
parentd28d4f49088eb5e0809cbb68655319c68e981caa (diff)
downloadscala-da60dda202f386ed85fa15bf8fe02252d4dfb911.tar.gz
scala-da60dda202f386ed85fa15bf8fe02252d4dfb911.tar.bz2
scala-da60dda202f386ed85fa15bf8fe02252d4dfb911.zip
SI-8835 Iterator tests can be junit
Without loss of generality or convenience, but helps reduce the number of files in test/files and may reduce compile times for test suite. This commit includes the fix from #3963 and an extra test of that fix that ensures the stack doesn't grow on chained drops.
Diffstat (limited to 'test/files/run/t3516.scala')
-rw-r--r--test/files/run/t3516.scala13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/files/run/t3516.scala b/test/files/run/t3516.scala
deleted file mode 100644
index aa302ce85a..0000000000
--- a/test/files/run/t3516.scala
+++ /dev/null
@@ -1,13 +0,0 @@
-object Test {
- def mkIterator = (1 to 5).iterator map (x => { println(x) ; x })
- def mkInfinite = Iterator continually { println(1) ; 1 }
-
- def main(args: Array[String]): Unit = {
- // Stream is strict in its head so we should see 1 from each of them.
- val s1 = mkIterator.toStream
- val s2 = mkInfinite.toStream
- // back and forth without slipping into nontermination.
- println((Stream from 1).toIterator.drop(10).toStream.drop(10).toIterator.next)
- ()
- }
-}