Skip to content

Commit 2f5f7c1

Browse files
committed
Fixed scalacheck test to fail if it's failing.
1 parent bf26437 commit 2f5f7c1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/files/scalacheck/CheckEither.scala

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import org.scalacheck.Test.{Params, check}
88
import org.scalacheck.ConsoleReporter.testStatsEx
99
import Function.tupled
1010

11-
object CheckEither extends Properties("Either") {
11+
object Test extends Properties("Either") {
1212
implicit def arbitraryEither[X, Y](implicit xa: Arbitrary[X], ya: Arbitrary[Y]): Arbitrary[Either[X, Y]] =
1313
Arbitrary[Either[X, Y]](oneOf(arbitrary[X].map(Left(_)), arbitrary[Y].map(Right(_))))
1414

@@ -186,9 +186,3 @@ object CheckEither extends Properties("Either") {
186186
STest.checkProperties(STest.Params(testCallback = ConsoleReporter(0)), this)
187187
}
188188
}
189-
190-
object Test {
191-
def main(args: Array[String]): Unit = {
192-
CheckEither.runTests()
193-
}
194-
}

0 commit comments

Comments
 (0)