Created
September 28, 2019 14:22
-
-
Save mikla/94072e46020feb4adfd17f5112b4d0b3 to your computer and use it in GitHub Desktop.
checAll for
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mport org.scalacheck.Properties | |
| import org.scalatest.FunSuiteLike | |
| import org.scalatest.prop.Checkers | |
| trait Discipline extends Checkers { self: FunSuiteLike => | |
| def checkAll(name: String, ruleSet: Laws#RuleSet): Unit = { | |
| for ((id, prop) ← ruleSet.all.properties) | |
| test(name + "." + id) { | |
| check(prop) | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment