Skip to content

Property6

class in io.proptastic

class Property6<A, B, C, D, E, F>

A property over 6 draws, from forAll. Pin examples, then .check: examples run first, don’t count toward the tries and never shrink.

Methods

example

Property6<A, B, C, D, E, F> example(A a, B b, C c, D d, E e, F f)

One example, run before the random tries, its values in the draws’ order.

check

void check(Property6.Check<A, B, C, D, E, F> check)

Runs the property now: throws with the shrunk counterexample if check fails.

follows

void follows(Model model, Property6.Answer<A, B, C, D, E, F> 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.

Privacy