Skip to content

Property5

class in io.proptastic

class Property5<A, B, C, D, E>

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

Methods

example

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

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

check

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

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

follows

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