diff options
Diffstat (limited to 'test/files/run/triemap-hash.scala')
-rw-r--r-- | test/files/run/triemap-hash.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/triemap-hash.scala b/test/files/run/triemap-hash.scala index 23cdd26bed..8f2347a96f 100644 --- a/test/files/run/triemap-hash.scala +++ b/test/files/run/triemap-hash.scala @@ -15,7 +15,7 @@ object Test { def hashing() { import collection._ - val tm = new concurrent.TrieMap[String, String](Hashing(x => x.length + x(0).toInt), Equality.defaultEquality) + val tm = new concurrent.TrieMap[String, String](Hashing.fromFunction(x => x.length + x(0).toInt), Equiv.universal) tm.put("a", "b") tm.put("c", "d") @@ -29,7 +29,7 @@ object Test { def equality() { import collection._ - val tm = new concurrent.TrieMap[String, String](Hashing(x => x(0).toInt), Equality(_(0) == _(0))) + val tm = new concurrent.TrieMap[String, String](Hashing.fromFunction(x => x(0).toInt), Equiv.fromFunction(_(0) == _(0))) tm.put("a", "b") tm.put("a1", "d") tm.put("b", "c") |