Closed ohbarye closed 6 months ago
This pull request adds TupleArbitrary to handle a tuple of several arbitraries as one object.
Besides, this allows to pass multiple arbitraries to Pbt.property and its predicate method.
Pbt.property
Pbt.assert do Pbt.property(Pbt.integer, Pbt.integer) do |x, y| raise if PbtTestTarget.biggest([x, y]) != [x, y].max end end
Change
This pull request adds TupleArbitrary to handle a tuple of several arbitraries as one object.
Besides, this allows to pass multiple arbitraries to
Pbt.property
and its predicate method.