diff options
Diffstat (limited to 'test/files/jvm')
-rw-r--r-- | test/files/jvm/serialization.check | 4 | ||||
-rw-r--r-- | test/files/jvm/serialization.scala | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/test/files/jvm/serialization.check b/test/files/jvm/serialization.check index c18d32b0c1..7b2b8cc18f 100644 --- a/test/files/jvm/serialization.check +++ b/test/files/jvm/serialization.check @@ -149,6 +149,10 @@ x = ArrayBuilder.ofFloat y = ArrayBuilder.ofFloat x equals y: true, y equals x: true +x = ArraySeq(1, 2, 3) +y = ArraySeq(1, 2, 3) +x equals y: true, y equals x: true + x = ArrayStack(3, 2, 20) y = ArrayStack(3, 2, 20) x equals y: true, y equals x: true diff --git a/test/files/jvm/serialization.scala b/test/files/jvm/serialization.scala index 0c33ab7df8..b16d46adad 100644 --- a/test/files/jvm/serialization.scala +++ b/test/files/jvm/serialization.scala @@ -295,7 +295,7 @@ object Test2_immutable { object Test3_mutable { import scala.reflect.ClassManifest import scala.collection.mutable.{ - ArrayBuffer, ArrayBuilder, ArrayStack, BitSet, DoubleLinkedList, + ArrayBuffer, ArrayBuilder, ArraySeq, ArrayStack, BitSet, DoubleLinkedList, HashMap, HashSet, History, LinkedList, ListBuffer, Publisher, Queue, Stack, StringBuilder, WrappedArray} @@ -316,6 +316,11 @@ object Test3_mutable { val _abu2: ArrayBuilder[ClassManifest[Float]] = read(write(abu2)) check(abu2, _abu2) + // ArraySeq + val aq1 = ArraySeq(1, 2, 3) + val _aq1: ArraySeq[Int] = read(write(aq1)) + check(aq1, _aq1) + // ArrayStack val as1 = new ArrayStack[Int] as1 ++= List(20, 2, 3).iterator |