A class supporting filtered operations.
Put a label on the generator to make test reports clearer
Put a label on the generator to make test reports clearer
Returns a new property that holds if and only if both this and the given generator generates the same result, or both generators generate no result.
Evaluate this generator with the given parameters
Create a new generator that fails if the specified partial function is undefined for this generator's value, otherwise returns the result of the partial function applied to this generator's value.
Create a new generator that uses this generator to produce a value that fulfills the given condition.
Create a new generator that uses this generator to produce a value that fulfills the given condition. If the condition is not fulfilled, the generator fails (returns None). Also, make sure that the provided test property is side-effect free, eg it should not use external vars.
Create a new generator by flat-mapping the result of this generator
Put a label on the generator to make test reports clearer
Create a new generator by mapping the result of this generator
Create a generator that calls this generator repeatedly until the given condition is fulfilled.
Create a generator that calls this generator repeatedly until the given condition is fulfilled. The generated value is then returned. Use this combinator with care, since it may result in infinite loops. Also, make sure that the provided test property is side-effect free, eg it should not use external vars.
Create a new generator that uses this generator to produce a value that fulfills the given condition.
Create a new generator that uses this generator to produce a value that fulfills the given condition. If the condition is not fulfilled, the generator fails (returns None). Also, make sure that the provided test property is side-effect free, eg it should not use external vars. This method is identical to [Gen.filter].
Creates a non-strict filtered version of this generator.
Put a label on the generator to make test reports clearer
Put a label on the generator to make test reports clearer