summaryrefslogtreecommitdiff
path: root/test/files/run/t6052.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t6052.scala')
-rw-r--r--test/files/run/t6052.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/t6052.scala b/test/files/run/t6052.scala
index 385d5390d3..5482cfb293 100644
--- a/test/files/run/t6052.scala
+++ b/test/files/run/t6052.scala
@@ -8,13 +8,13 @@
object Test extends App {
def seqarr(i: Int) = Array[Int]() ++ (0 until i)
def pararr(i: Int) = seqarr(i).par
-
+
def check[T](i: Int, f: Int => T) {
val gseq = seqarr(i).toSeq.groupBy(f)
val gpar = pararr(i).groupBy(f)
assert(gseq == gpar, (gseq, gpar))
}
-
+
for (i <- 0 until 20) check(i, _ > 0)
for (i <- 0 until 20) check(i, _ % 2)
for (i <- 0 until 20) check(i, _ % 4)