The predicate functions could be property-tested. Add the necessary infrastructure and some tests using QuickCheck (or some similar tool).
The predicate functions could be property-tested. Add the necessary infrastructure and some tests using QuickCheck (or some similar tool).