Namespace: FsCheck.Fluent
Assembly: FsCheck.dll
Base Type:
obj
Static member | Description | ||
|
Generates a 2D array. The square root of the size is the maximum number of rows and columns.
|
||
|
Generates a 2D array of the given dimensions.
|
||
|
Generates an array using the specified generator. The maximum length is size+1.
|
||
|
Generates an array of a specified length.
|
||
|
No-op, added to allow type annotations in LINQ expressions, e.g. from T x in e
|
||
|
Generates integers between l and h, inclusive.
|
||
|
Always generate the same given value. See also Fresh.
|
||
|
Build a generator that randomly generates one of the values in the given non-empty array.
|
||
|
Build a generator that randomly generates one of the values in the given non-empty, finite sequence.
|
||
|
Build a generator that generates a 4-tuple of the values generated by the given generator.
|
||
|
Build a generator that generates a value from one of the generators in the given non-empty arrat, with given probabilities. The sum of the probabilities must be larger than zero.
|
||
|
Build a generator that generates a value from one of the generators in the given non-empty seq, with given probabilities. The sum of the probabilities must be larger than zero.
|
||
|
Generate fresh instances by calling create every time the generator generates a new value. Useful for generating new instances of mutable objects. See also constant. |
||
|
Build a generator that takes a non-empty array and randomly generates one of the values among an initial segment of that array. The size of this initial segment increases with the size parameter. Essentially this generator is Gen.Elements but taking also the size into account.
|
||
|
Build a generator that takes a non-empty sequence and randomly generates one of the values among an initial segment of that sequence. The size of this initial segment increases with the size parameter. Essentially this generator is Gen.Elements but taking also the size into account.
|
||
|
Generates a list of random length. The maximum length depends on the size parameter.
|
||
|
Generates a list of given length, containing values generated by the given generator.
|
||
|
Generates a non-empty list of random length. The maximum length depends on the size parameter.
|
||
|
Build a generator that generates a value from one of the generators in the given non-empty array, with equal probability.
|
||
|
Build a generator that generates a value from one of the generators in the given non-empty sequence, with equal probability.
|
||
|
Build a generator that generates a value from two generators with equal probability.
|
||
|
Build a generator that generates a value or `null` 1/8th of the time.
|
||
|
Generates random arrays of given length where the sum of all elements equals the given sum.
|
||
|
|
||
|
Generates numberOfSample values with the given seed and of the given size.
|
||
Full Usage:
Gen.Sample(generator, numberOfSamples, size)
Parameters:
Gen<'T>
numberOfSamples : int
size : int
Returns: 'T[]
|
Generates numberOfSample values with the given size.
|
||
Full Usage:
Gen.Sample(generator, numberOfSamples)
Parameters:
Gen<'T>
numberOfSamples : int
Returns: 'T[]
|
Generates numberOfSample values with a new seed and size 50.
|
||
|
Modify a size using the given function before passing it to the given generator.
|
||
|
Create a new generator by applying selector to each value in the given generator.
|
||
Creates a new generator that generates values from the source generator, applies the selector to them to get a new generator, and generates values by applying the resultSelector to the source value and the value from the second generator.
|
|||
|
Creates a new generator that generates values from the source generator, applies the selector to them, and generates values from the resulting generator.
|
||
|
Generates random permutations of the given array.
|
||
|
Generates random permutations of the given sequence.
|
||
|
Obtain the current size. Sized(g) calls g, passing it the current size as a parameter.
|
||
|
Generates sublists of the given array. For a given list of length n, each sublist has between 0 and n elements, and the order of the elements is the same as in the given sequence.
|
||
|
Generates sublists of the given sequence. For a given list of length n, each sublist has between 0 and n elements, and the order of the elements is the same as in the given sequence.
|
||
|
Build a generator that generates a 3-tuple of the values generated by the given generator.
|
||
|
Build a generator that generates a 2-tuple of the values generated by the given generator.
|
||
|
Generates only values from the source generator that satisfy the predicate. This function keeps re-trying by increasing the size of the original generator ad infinitum. Make sure there is a high chance that the predicate is satisfied.
|
||
|
Combine two generators into a new generator of the result of the given result selector.
|
||
|
Combine two generators into a generator of pairs.
|
Static member | Description |
|
Transform the given sequence into a generator of an array using the given function to create a generator for each element of the sequence. [category: Create generators from generators]
|
|
Transform the given sequence of generators into a generator of an array. [category: Create generators from generators]
|
|
Transform the given sequence into a generator of a List using the given function to create a generator for each element of the sequence. [category: Create generators from generators] |
|
Transform the given sequence of generators into a generator of a List. [category: Create generators from generators]
|
|
Transform the given sequence into a generator of sequences using the given function to create a generator for each element of the sequence. Each sequence generated by the resulting generator can be infinite, if the source sequence is infinite. [category: Create generators from generators]
|
|
Transform the given sequence of generators into a generator of an array. Each sequence generated by the resulting generator can be infinite, if the source sequence is infinite. [category: Create generators from generators]
|