From 436a7d8636498d855a6792c2d1597d13e1c0ee4c Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 13 Jun 2010 16:16:47 +0000 Subject: Changed groupBy to return immutable.Map. --- test/files/run/colltest1.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/files') diff --git a/test/files/run/colltest1.scala b/test/files/run/colltest1.scala index 943fe4c4e7..dd9ecdbd5e 100644 --- a/test/files/run/colltest1.scala +++ b/test/files/run/colltest1.scala @@ -29,8 +29,8 @@ object Test extends Application { val (o, e) = ten.partition(_ % 2 == 0) assert(o.size == e.size) val gs = ten groupBy (x => x / 4) - val vs1 = (for (k <- gs.keysIterator; v <- gs(k).toIterable.iterator) yield v).toList - val vs2 = gs.values.toList.flatten + val vs1 = (for (k <- gs.keysIterator; v <- gs(k).toIterable.iterator) yield v).toList.sorted + val vs2 = gs.values.toList.flatten.sorted // val vs2 = gs.values.toList flatMap (xs => xs) assert(ten.head == 1) assert(ten.tail.head == 2) -- cgit v1.2.3