From d4716791267b2f39ebb746e142de773f173c7198 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 9 Sep 2009 03:19:07 +0000 Subject: 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.) --- test/files/run/sequenceComparisons.check | 1 - test/files/run/sequenceComparisons.scala | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 test/files/run/sequenceComparisons.check (limited to 'test/files') 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 -- cgit v1.2.3