From 76ce74d7aefda96f6148e2e4b50f3c815dd3c076 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sat, 18 Sep 2010 17:54:12 +0000 Subject: Fixed an issue with ListSet getting confused ab... Fixed an issue with ListSet getting confused about what goes forward and what goes backward. No review. --- test/files/run/bug3822.scala | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/files/run') diff --git a/test/files/run/bug3822.scala b/test/files/run/bug3822.scala index 7401ecbde2..c35804035e 100644 --- a/test/files/run/bug3822.scala +++ b/test/files/run/bug3822.scala @@ -7,6 +7,12 @@ object Test { assert(xs.size == 200002) assert(xs.sum == 100001) + + val ys = ListSet[Int]() + val ys1 = (1 to 12).grouped(3).foldLeft(ys)(_ ++ _) + val ys2 = (1 to 12).foldLeft(ys)(_ + _) + + assert(ys1 == ys2) } } -- cgit v1.2.3