diff options
author | Paul Phillips <paulp@improving.org> | 2009-09-09 03:19:07 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-09-09 03:19:07 +0000 |
commit | d4716791267b2f39ebb746e142de773f173c7198 (patch) | |
tree | f114b437ae9addb325874f4376acdb20b734477b /test/files | |
parent | 39023c4346f1940289c7cd663b7dd382ca7c6f0e (diff) | |
download | scala-d4716791267b2f39ebb746e142de773f173c7198.tar.gz scala-d4716791267b2f39ebb746e142de773f173c7198.tar.bz2 scala-d4716791267b2f39ebb746e142de773f173c7198.zip |
Created plausibly sensible equals and hashCode ...
Created plausibly sensible equals and hashCode methods in
collection.{ Set, Map, Sequence } and made sure that none
of the derived collections is getting too excited about doing
its own thing and in so doing either breaking equals/hashCode
consistency or creating an asymmetric equals (or both.)
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/sequenceComparisons.check | 1 | ||||
-rw-r--r-- | test/files/run/sequenceComparisons.scala | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/test/files/run/sequenceComparisons.check b/test/files/run/sequenceComparisons.check deleted file mode 100644 index df8e41125d..0000000000 --- a/test/files/run/sequenceComparisons.check +++ /dev/null @@ -1 +0,0 @@ -All 4000 tests passed. diff --git a/test/files/run/sequenceComparisons.scala b/test/files/run/sequenceComparisons.scala index 192002bdd6..340a4fa55f 100644 --- a/test/files/run/sequenceComparisons.scala +++ b/test/files/run/sequenceComparisons.scala @@ -17,6 +17,7 @@ object Test { // null on Nil // mutable.LinkedList(_: _*), mutable.ListBuffer(_: _*), + // mutable.PriorityQueue(_: _*), // immutable.Queue(_: _*), // mutable.Queue(_: _*), immutable.Sequence(_: _*), @@ -115,7 +116,6 @@ object Test { def main(args: Array[String]): Unit = { runSeqs() - if (failures.isEmpty) println("All %d tests passed.".format(testCount)) - else failures foreach println + assert(failures.isEmpty, failures mkString "\n") } }
\ No newline at end of file |