diff options
author | Aleksandar Prokopec <axel22@gmail.com> | 2012-02-02 14:05:26 +0100 |
---|---|---|
committer | Aleksandar Prokopec <axel22@gmail.com> | 2012-02-02 14:05:26 +0100 |
commit | c3d19c58d8a94b7232718321f6994c001257cc96 (patch) | |
tree | e334024c4ff56fb7e98c48b47fbffe2d5c8b4fca /test/files/jvm/serialization.scala | |
parent | 5fe2d8b109abf3ff3e2d82dd4f248200846795c3 (diff) | |
download | scala-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.scala | 7 |
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 => |