Method: Pbt.property
- Defined in:
- lib/pbt.rb
.property(*args, **kwargs, &predicate) ⇒ Property
Create a property-based test with arbitraries. To run the test, pass the returned value to ‘Pbt.assert` method. Be aware that using both positional and keyword arguments is not supported.
42 43 44 45 |
# File 'lib/pbt.rb', line 42 def self.property(*args, **kwargs, &predicate) arb = to_arbitrary(args, kwargs) Check::Property.new(arb, &predicate) end |