summaryrefslogtreecommitdiff
path: root/test/files/run/bug3822.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-09-18 17:54:12 +0000
committerPaul Phillips <paulp@improving.org>2010-09-18 17:54:12 +0000
commit76ce74d7aefda96f6148e2e4b50f3c815dd3c076 (patch)
tree13ac5ea3e6f4babd0a1a3d6da6505daea3e1f285 /test/files/run/bug3822.scala
parentbece2590efabb3156ec89f7e31fd11d7eafdddc8 (diff)
downloadscala-76ce74d7aefda96f6148e2e4b50f3c815dd3c076.tar.gz
scala-76ce74d7aefda96f6148e2e4b50f3c815dd3c076.tar.bz2
scala-76ce74d7aefda96f6148e2e4b50f3c815dd3c076.zip
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.
Diffstat (limited to 'test/files/run/bug3822.scala')
-rw-r--r--test/files/run/bug3822.scala6
1 files changed, 6 insertions, 0 deletions
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)
}
}