diff options
author | Paul Phillips <paulp@improving.org> | 2011-08-24 17:11:55 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-08-24 17:11:55 +0000 |
commit | b9785280a7138a2bb52060faf94807aa0d07dec1 (patch) | |
tree | 870cc1930ac3d50cd07078260f58984224dd39a5 /test/files/run/bug2552.scala | |
parent | 84fcf633d9ca507124806d64729cb8463bcebb69 (diff) | |
download | scala-b9785280a7138a2bb52060faf94807aa0d07dec1.tar.gz scala-b9785280a7138a2bb52060faf94807aa0d07dec1.tar.bz2 scala-b9785280a7138a2bb52060faf94807aa0d07dec1.zip |
Renamed tests named bugXXX to tXXX, no review.
Diffstat (limited to 'test/files/run/bug2552.scala')
-rw-r--r-- | test/files/run/bug2552.scala | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/test/files/run/bug2552.scala b/test/files/run/bug2552.scala deleted file mode 100644 index 0c6b4f005b..0000000000 --- a/test/files/run/bug2552.scala +++ /dev/null @@ -1,34 +0,0 @@ -object Test extends App { - def testTakeWhile = { - val numbers = Iterator.range(0, 50) - val zeroTo9 = numbers.takeWhile(x => { println("p(" + x + ")"); x < 10 } ) - - zeroTo9.foreach(println _) - - val zeroTo1 = Iterator.range(0, 20).takeWhile(x => { println("p(" + x + ")"); x < 2 } ) - - println(zeroTo1.hasNext) - println(zeroTo1.hasNext) - println(zeroTo1.next) - println(zeroTo1.hasNext) - println(zeroTo1.next) - println(zeroTo1.hasNext) - println(zeroTo1.hasNext) - } - - def testFilter = { - val predicate = (x: Int) => { println("p(" + x + ")"); x % 2 == 0 } - - val evens = Iterator.range(0, 10).filter(predicate) - - println(evens.hasNext) - println(evens.hasNext) - println(evens.next) - - evens.foreach(println _) - } - - testTakeWhile - testFilter -} - |