Property4
class in io.proptastic
class Property4<A, B, C, D>A property over 4 draws, from forAll. Pin examples, then .check: examples run
first, don’t count toward the tries and never shrink.
Methods
example
Property4<A, B, C, D> example(A a, B b, C c, D d)One example, run before the random tries, its values in the draws’ order.
check
void check(Property4.Check<A, B, C, D> check)Runs the property now: throws with the shrunk counterexample if check fails.
follows
void follows(Model model, Property4.Answer<A, B, C, D> answer)Runs the property against model: for each try, the code’s answer must be the
one the model allows, and every outcome the model names must come up, or be .unreachable. A pass prints what was followed.