From b9785280a7138a2bb52060faf94807aa0d07dec1 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 24 Aug 2011 17:11:55 +0000 Subject: Renamed tests named bugXXX to tXXX, no review. --- test/files/run/bug2552.scala | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 test/files/run/bug2552.scala (limited to 'test/files/run/bug2552.scala') 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 -} - -- cgit v1.2.3