Used for specifying properties.
Returns a new property that holds if and only if both this and the given property hold.
Returns a new property that holds if and only if both this and the given property hold. If one of the properties doesn't generate a result, the new property will generate false.
Returns a new property that holds if and only if both this and the given property hold.
Returns a new property that holds if and only if both this and the given property hold. If one of the properties doesn't generate a result, the new property will generate the same result as the other property.
Put a label on the property to make test reports clearer
Put a label on the property to make test reports clearer
Put a label on the property to make test reports clearer
Put a label on the property to make test reports clearer
Returns a new property that holds if and only if both this and the given property generates a result with the exact same status.
Returns a new property that holds if and only if both this and the given property generates a result with the exact same status. Note that this means that if one of the properties is proved, and the other one passed, then the resulting property will fail.
Combines two properties through implication
Combines two properties through implication
Convenience method that checks the properties and reports the result on the console.
Convenience method that checks the properties and reports the
result on the console. If you need to get the results from the test use
the check
methods in Test
instead.
Convenience method that checks the properties with the given parameters and reports the result on the console.
Convenience method that checks the properties with the given parameters
and reports the result on the console. If you need to get the results
from the test use the check
methods in Test
instead.
Adds all properties from another property collection to this one.
Put a label on the property to make test reports clearer
Put a label on the property to make test reports clearer
Convenience method that makes it possible to use a this instance as an application that checks itself on execution
Convenience method that makes it possible to use a this instance as an application that checks itself on execution
Returns all properties of this collection in a list of name/property pairs.
Put a label on the property to make test reports clearer
Put a label on the property to make test reports clearer
Put a label on the property to make test reports clearer
Put a label on the property to make test reports clearer
Returns a new property that holds if either this or the given property (or both) hold.
Returns a new property that holds if either this or the given property (or both) hold.
Returns a new property that holds if and only if both this and the given property generates a result with the exact same status.
Returns a new property that holds if and only if both this and the given property generates a result with the exact same status. Note that this means that if one of the properties is proved, and the other one passed, then the resulting property will fail.
Use == instead.
Represents a collection of properties, with convenient methods for checking all properties at once. This class is itself a property, which holds if and only if all of the contained properties hold.
Properties are added in the following way:
object MyProps extends Properties("MyProps") { property("myProp1") = forAll { (n:Int, m:Int) => n+m == m+n } property("myProp2") = ((0/1) throws classOf[ArithmeticException]) }