summaryrefslogtreecommitdiff
path: root/test/files/run/triemap-hash.scala
diff options
context:
space:
mode:
authorAleksandar Prokopec <axel22@gmail.com>2012-06-01 18:08:48 +0200
committerAleksandar Prokopec <axel22@gmail.com>2012-06-01 18:09:14 +0200
commitbb30e08d71c888f923e814e7ccbeb03427fd8808 (patch)
tree76f2675a59b76f5f431a2f3824a979c05bdd740e /test/files/run/triemap-hash.scala
parentd38ad5e9877011e635b6c2cb6c4f3fcb31dfb7d2 (diff)
downloadscala-bb30e08d71c888f923e814e7ccbeb03427fd8808.tar.gz
scala-bb30e08d71c888f923e814e7ccbeb03427fd8808.tar.bz2
scala-bb30e08d71c888f923e814e7ccbeb03427fd8808.zip
Remove Equality in favour of Equiv.
Make Equiv serializable.
Diffstat (limited to 'test/files/run/triemap-hash.scala')
-rw-r--r--test/files/run/triemap-hash.scala4
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")