diff options
author | Paul Phillips <paulp@improving.org> | 2011-12-15 14:19:45 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-12-16 14:18:03 -0800 |
commit | 2f5f7c16870ae1fa97bbca1642659ab8c104b442 (patch) | |
tree | 4b57dca178f39d0fbd1f7d613b2bdabe91b02b1b /test/files/scalacheck | |
parent | bf2643764614f03eb7eb820a5f0c08f6ec799254 (diff) | |
download | scala-2f5f7c16870ae1fa97bbca1642659ab8c104b442.tar.gz scala-2f5f7c16870ae1fa97bbca1642659ab8c104b442.tar.bz2 scala-2f5f7c16870ae1fa97bbca1642659ab8c104b442.zip |
Fixed scalacheck test to fail if it's failing.
Diffstat (limited to 'test/files/scalacheck')
-rw-r--r-- | test/files/scalacheck/CheckEither.scala | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/files/scalacheck/CheckEither.scala b/test/files/scalacheck/CheckEither.scala index a7e50877a7..0145d3321f 100644 --- a/test/files/scalacheck/CheckEither.scala +++ b/test/files/scalacheck/CheckEither.scala @@ -8,7 +8,7 @@ import org.scalacheck.Test.{Params, check} import org.scalacheck.ConsoleReporter.testStatsEx import Function.tupled -object CheckEither extends Properties("Either") { +object Test extends Properties("Either") { implicit def arbitraryEither[X, Y](implicit xa: Arbitrary[X], ya: Arbitrary[Y]): Arbitrary[Either[X, Y]] = Arbitrary[Either[X, Y]](oneOf(arbitrary[X].map(Left(_)), arbitrary[Y].map(Right(_)))) @@ -186,9 +186,3 @@ object CheckEither extends Properties("Either") { STest.checkProperties(STest.Params(testCallback = ConsoleReporter(0)), this) } } - -object Test { - def main(args: Array[String]): Unit = { - CheckEither.runTests() - } -} |