From 73a93505c432b410ae39fb3c4d6168b2e49832ce Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Wed, 13 May 2015 12:08:27 +0200 Subject: Running rewrite tool on run tests. --- tests/pending/run/t6200.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/pending/run/t6200.scala') diff --git a/tests/pending/run/t6200.scala b/tests/pending/run/t6200.scala index 75600cd55..fd96b3ab5 100644 --- a/tests/pending/run/t6200.scala +++ b/tests/pending/run/t6200.scala @@ -8,7 +8,7 @@ object Test extends App { override def hashCode = value / 5 } - def testCorrectness[T: Ordering](n: Int, mkKey: Int => T) { + def testCorrectness[T: Ordering](n: Int, mkKey: Int => T): Unit = { val o = implicitly[Ordering[T]] val s = HashMap.empty[T, Unit] ++ (0 until n).map(x => mkKey(x) -> (())) for (i <- 0 until n) { @@ -23,14 +23,14 @@ object Test extends App { // this tests the structural sharing of the new filter // I could not come up with a simple test that tests structural sharing when only parts are reused, but // at least this fails with the old and passes with the new implementation - def testSharing() { + def testSharing(): Unit = { val s = HashMap.empty[Int, Unit] ++ (0 until 100).map(_ -> (())) require(s.filter(_ => true) eq s) require(s.filterNot(_ => false) eq s) } // this tests that neither hashCode nor equals are called during filter - def testNoHashing() { + def testNoHashing(): Unit = { var hashCount = 0 var equalsCount = 0 case class HashCounter(value: Int) extends Ordered[HashCounter] { -- cgit v1.2.3