Argument type of predicate. For example, if the law
predicate signature is Predicate<[a: number, b: string]>
, then T
would be [a: number, b: string]
.
Law name, shown as test label.
String note to be shown on failure or in verbose mode.
Rest
...arbitraries: {A tuple of arbitraries, one per predicate argument.
Build a law from a name, a predicate, an optional note, an arbitrary for the predicate arguments, and optional
fast-check
runtime parameters. The runtime parameters are documented here.Example