A property argument
Evaluating the property raised an exception
A collection of property operators on Any
values.
A collection of property operators on Any
values.
Import Prop.AnyOperators to make the operators available.
A collection of property operators on Boolean
values.
A collection of property operators on Boolean
values.
Import Prop.propBoolean to make the operators available.
The availability of this class as an implicit via
BooleanOperators
was removed in 1.15.0.
The result of evaluating a property
Create a property that compares two values.
Create a property that compares two values. If the values aren't equal, the property will fail and report that second value doesn't match the expected (first) value.
Create a property that compares two values.
Create a property that compares two values. If the values aren't equal, the property will fail and report that first value doesn't match the expected (second) value.
Implicit method that makes a number of property operators on values of
type Any
available in the current scope.
Implicit method that makes a number of property operators on values of
type Any
available in the current scope.
See Prop.ExtendedAny for documentation on the operators.
The property was false
The property was proved
The property was true
The property could not be falsified or proved
Combines properties into one, which is true if and only if all the properties are true
Create a property from a boolean value
Create a property that returns the given result
Create a new property from the given function.
Combines properties into one, which is true if at least one of the properties is true
Collect data for presentation in test report
Collect data for presentation in test report
Collect data for presentation in test report
Wraps a property to delay its evaluation.
Wraps a property to delay its evaluation. The given parameter is evaluated each time the wrapper property is evaluated.
A property that denotes an exception
A property that denotes an exception
Existential quantifier for an explicit generator.
Existential quantifier for an explicit generator.
A property that always is false
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Universal quantifier for eight explicit generators.
Universal quantifier for eight explicit generators. Shrinks failed arguments with the default shrink function for the type
Universal quantifier for seven explicit generators.
Universal quantifier for seven explicit generators. Shrinks failed arguments with the default shrink function for the type
Universal quantifier for six explicit generators.
Universal quantifier for six explicit generators. Shrinks failed arguments with the default shrink function for the type
Universal quantifier for five explicit generators.
Universal quantifier for five explicit generators. Shrinks failed arguments with the default shrink function for the type
Universal quantifier for four explicit generators.
Universal quantifier for four explicit generators. Shrinks failed arguments with the default shrink function for the type
Universal quantifier for three explicit generators.
Universal quantifier for three explicit generators. Shrinks failed arguments with the default shrink function for the type
Universal quantifier for two explicit generators.
Universal quantifier for two explicit generators. Shrinks failed arguments with the default shrink function for the type
Universal quantifier for an explicit generator.
Universal quantifier for an explicit generator. Shrinks failed arguments with the default shrink function for the type
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Converts a function into a universally quantified property
Universal quantifier for eight explicit generators.
Universal quantifier for eight explicit generators. Does not shrink failed test cases.
Universal quantifier for seven explicit generators.
Universal quantifier for seven explicit generators. Does not shrink failed test cases.
Universal quantifier for six explicit generators.
Universal quantifier for six explicit generators. Does not shrink failed test cases.
Universal quantifier for five explicit generators.
Universal quantifier for five explicit generators. Does not shrink failed test cases.
Universal quantifier for four explicit generators.
Universal quantifier for four explicit generators. Does not shrink failed test cases.
Universal quantifier for three explicit generators.
Universal quantifier for three explicit generators. Does not shrink failed test cases.
Universal quantifier for two explicit generators.
Universal quantifier for two explicit generators. Does not shrink failed test cases.
Universal quantifier for an explicit generator.
Universal quantifier for an explicit generator. Does not shrink failed test cases.
Universal quantifier for an explicit generator.
Universal quantifier for an explicit generator. Shrinks failed arguments with the given shrink function
Property holds only if the given partial function is defined at
x
, and returns a property that holds
Implication with several conditions
Wraps a property lazily.
Wraps a property lazily. The given parameter is only evaluated once, and not until the wrapper property is evaluated.
A property that holds iff none of the given generators fails generating a value
A property that always is passed
Implicit conversion of Boolean values to Prop values.
Wraps and protects a property, delaying its evaluation and turning exceptions into test failures.
A property that always is proved
Wraps and protects a property, turning exceptions thrown by the property into test failures.
A property that depends on the generator size
A property that holds if at least one of the given generators fails generating a value
This handles situations where we have a starting seed in our parameters.
This handles situations where we have a starting seed in our parameters.
If we do, then we remove it from parameters and return it. If not, we create a new random seed. The new parameters from this method should be used with all the generation that this prop needs itself.
Note that if this Prop needs to evaluate other Props (e.g. in
forAll), you should make sure *not* to use the parameters
returned from this method. We need for all Props evaluated by
this one to behave deterministically if this Prop was given a
seed. In that case you should use slideSeed
to update the
parameters.
Returns true if the given statement throws an exception of the specified type
A property that never is proved or falsified
Ensures that the property expression passed in completes within the given space of time.
Implicit method that makes a number of property operators on boolean values available in the current scope.
Implicit method that makes a number of property operators on boolean values available in the current scope. See Prop.ExtendedBoolean for documentation on the operators.
(Since version 1.14.1) Please import Prop.propBoolean instead
Collect data for presentation in test report
Collect data for presentation in test report
(Since version 1.15.0) Use Prop.forAll(t => Prop.collect(t)(...)) instead of Prop.forAll(Prop.collect(t => ...))
(Since version ) see corresponding Javadoc for more information.