diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-14 12:34:08 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-14 12:34:08 -0700 |
commit | cb0afb560051187044a557a044ff53f2a3592958 (patch) | |
tree | 3f54ecf13be1d6c81a0b6dd81f1d13ae81835d45 /test | |
parent | 014e4d909d5e8b8605229f1237aa175e27bf8475 (diff) | |
parent | 4b0b673c7d1e7ee9c979680ed217df6ca15452dc (diff) | |
download | scala-cb0afb560051187044a557a044ff53f2a3592958.tar.gz scala-cb0afb560051187044a557a044ff53f2a3592958.tar.bz2 scala-cb0afb560051187044a557a044ff53f2a3592958.zip |
Merge pull request #3628 from gzm0/test-fix
Minor fixes in test. The equals method always returned true.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t6196.scala | 2 | ||||
-rw-r--r-- | test/files/run/t6200.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/t6196.scala b/test/files/run/t6196.scala index 16c2c7409d..a75911fb9e 100644 --- a/test/files/run/t6196.scala +++ b/test/files/run/t6196.scala @@ -43,7 +43,7 @@ object Test extends App { override def equals(that:Any) = { equalsCount += 1 - this match { + that match { case HashCounter(value) => this.value == value case _ => false } diff --git a/test/files/run/t6200.scala b/test/files/run/t6200.scala index 9a5d91e042..75600cd557 100644 --- a/test/files/run/t6200.scala +++ b/test/files/run/t6200.scala @@ -43,7 +43,7 @@ object Test extends App { override def equals(that: Any) = { equalsCount += 1 - this match { + that match { case HashCounter(value) => this.value == value case _ => false } |