diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/serialization.check | 4 | ||||
-rw-r--r-- | test/files/run/bug3822.scala | 13 |
2 files changed, 15 insertions, 2 deletions
diff --git a/test/files/jvm/serialization.check b/test/files/jvm/serialization.check index 3f095cb51e..9397d3f7e9 100644 --- a/test/files/jvm/serialization.check +++ b/test/files/jvm/serialization.check @@ -93,8 +93,8 @@ x = Map(buffers -> 20, layers -> 2, title -> 3) y = Map(buffers -> 20, layers -> 2, title -> 3) x equals y: true, y equals x: true -x = Set(5, 3) -y = Set(5, 3) +x = ListSet(5, 3) +y = ListSet(5, 3) x equals y: true, y equals x: true x = Queue(a, b, c) diff --git a/test/files/run/bug3822.scala b/test/files/run/bug3822.scala new file mode 100644 index 0000000000..7401ecbde2 --- /dev/null +++ b/test/files/run/bug3822.scala @@ -0,0 +1,13 @@ +import scala.collection.{ mutable, immutable, generic } +import immutable.ListSet + +object Test { + def main(args: Array[String]): Unit = { + val xs = ListSet(-100000 to 100001: _*) + + assert(xs.size == 200002) + assert(xs.sum == 100001) + } +} + + |