summaryrefslogtreecommitdiff
path: root/test/files/jvm/serialization.scala
diff options
context:
space:
mode:
authorAleksandar Prokopec <axel22@gmail.com>2012-02-02 14:05:26 +0100
committerAleksandar Prokopec <axel22@gmail.com>2012-02-02 14:05:26 +0100
commitc3d19c58d8a94b7232718321f6994c001257cc96 (patch)
treee334024c4ff56fb7e98c48b47fbffe2d5c8b4fca /test/files/jvm/serialization.scala
parent5fe2d8b109abf3ff3e2d82dd4f248200846795c3 (diff)
downloadscala-c3d19c58d8a94b7232718321f6994c001257cc96.tar.gz
scala-c3d19c58d8a94b7232718321f6994c001257cc96.tar.bz2
scala-c3d19c58d8a94b7232718321f6994c001257cc96.zip
Incorporate Ctrie into standard library.
Implemented Ctrie serialization. Improved hashcode computation.
Diffstat (limited to 'test/files/jvm/serialization.scala')
-rw-r--r--test/files/jvm/serialization.scala7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/files/jvm/serialization.scala b/test/files/jvm/serialization.scala
index 73bed2d46b..4e1ff368ab 100644
--- a/test/files/jvm/serialization.scala
+++ b/test/files/jvm/serialization.scala
@@ -286,7 +286,7 @@ object Test3_mutable {
import scala.collection.mutable.{
ArrayBuffer, ArrayBuilder, ArraySeq, ArrayStack, BitSet, DoubleLinkedList,
HashMap, HashSet, History, LinkedList, ListBuffer, Publisher, Queue,
- Stack, StringBuilder, WrappedArray, TreeSet}
+ Stack, StringBuilder, WrappedArray, TreeSet, Ctrie}
// in alphabetic order
try {
@@ -385,6 +385,11 @@ object Test3_mutable {
val ts1 = TreeSet[Int]() ++= Array(1, 2, 3)
val _ts1: TreeSet[Int] = read(write(ts1))
check(ts1, _ts1)
+
+ // Ctrie
+ val ct1 = Ctrie[Int, String]() ++= Array(1 -> "one", 2 -> "two", 3 -> "three")
+ val _ct1: Ctrie[Int, String] = read(write(ct1))
+ check(ct1, _ct1)
}
catch {
case e: Exception =>