discipline
discipline copied to clipboard
A way to combine and de-dupe tests
Another one from Michael: checkAll(monadTests ++ alternativeTest)
This is useful if checking laws for typeclasses belong to the same hiearchy e.g. Monad and Alternative. Running tests for them separately causes common tests to be run twice.