summaryrefslogtreecommitdiff
path: root/test/files/jvm/t1600.scala
diff options
context:
space:
mode:
authorTiark Rompf <tiark.rompf@epfl.ch>2010-04-13 11:08:12 +0000
committerTiark Rompf <tiark.rompf@epfl.ch>2010-04-13 11:08:12 +0000
commitea91456310736caed3064c117c5a72f515d59688 (patch)
treefe8cc9d9665f22eae5c6a81d8c557b25a168f41a /test/files/jvm/t1600.scala
parent5055ee1d62cd486e50dc13ca9275be91ebb78cc5 (diff)
downloadscala-ea91456310736caed3064c117c5a72f515d59688.tar.gz
scala-ea91456310736caed3064c117c5a72f515d59688.tar.bz2
scala-ea91456310736caed3064c117c5a72f515d59688.zip
closes #3241 and improves serialization of hash...
closes #3241 and improves serialization of hash tries. review by community.
Diffstat (limited to 'test/files/jvm/t1600.scala')
-rw-r--r--test/files/jvm/t1600.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/jvm/t1600.scala b/test/files/jvm/t1600.scala
index 1cdcee8547..79391b7e76 100644
--- a/test/files/jvm/t1600.scala
+++ b/test/files/jvm/t1600.scala
@@ -12,11 +12,11 @@ object Test {
def elements = entries.map(_._1)
val maps = Seq[Map[Foo, Int]](new mutable.HashMap, new mutable.LinkedHashMap,
- new immutable.HashMap).map(_ ++ entries)
+ immutable.HashMap.empty).map(_ ++ entries)
test[Map[Foo, Int]](maps, entries.size, assertMap _)
val sets = Seq[Set[Foo]](new mutable.HashSet, new mutable.LinkedHashSet,
- new immutable.HashSet).map(_ ++ elements)
+ immutable.HashSet.empty).map(_ ++ elements)
test[Set[Foo]](sets, entries.size, assertSet _)
}
}
@@ -31,7 +31,7 @@ object Test {
assertFunction(deserializedCollection, expectedSize)
assert(deserializedCollection.getClass == collection.getClass,
- "collection class should remain the same after deserialization")
+ "collection class should remain the same after deserialization ("+deserializedCollection.getClass+" != "+collection.getClass+")")
Foo.hashCodeModifier = 0
}
}