(--) [QCheck.Gen] |
Synonym to
QCheck.Gen.int_range
|
(--) [QCheck] |
Synonym to
QCheck.int_range
|
(<*>) [QCheck.Iter] | |
(<*>) [QCheck.Gen] | |
(<+>) [QCheck.Iter] |
Synonym to
QCheck.Iter.append
|
(==>) [QCheck] | b1 ==> b2 is the logical implication b1 => b2
ie not b1 || b2 (except that it is strict and will interact
better with QCheck.Test.check_exn and the likes, because they will know
the precondition was not satisfied.).
|
(>:::) [QCheck_runner] |
Same as
OUnit.>::: but with a list of QCheck tests
|
(>>=) [QCheck.Iter] | |
(>>=) [QCheck.Gen] | |
(>|=) [QCheck.Iter] | |
(>|=) [QCheck.Gen] | |
A | |
always [QCheck] |
Always return the same element
|
append [QCheck.Iter] | |
array [QCheck.Shrink] |
Shrink an array.
|
array [QCheck.Print] | |
array [QCheck.Gen] | |
array [QCheck] |
generates arrays with length generated by
small_int
|
array_of_size [QCheck] |
generates arrays with length from the given distribution
|
array_repeat [QCheck.Gen] | |
array_size [QCheck.Gen] | |
B | |
bool [QCheck.Print] | |
bool [QCheck.Gen] | |
bool [QCheck] |
uniform boolean generator
|
C | |
char [QCheck.Print] | |
char [QCheck.Gen] | |
char [QCheck] |
Uniformly distributed on all the chars (not just ascii or
valid latin-1)
|
check_cell [QCheck.Test] | check ~rand test generates up to count random
values of type 'a using arbitrary and the random state st .
|
check_cell_exn [QCheck.Test] |
Same as
QCheck.Test.check_cell but calls QCheck.Test.check_result on the result.
|
check_exn [QCheck.Test] |
Same as
QCheck.Test.check_cell but calls QCheck.Test.check_result on the result.
|
check_result [QCheck.Test] | check_result cell res checks that res is Ok _ , and returns unit.
|
choose [QCheck] |
Choose among the given list of generators.
|
comap [QCheck.Print] | |
E | |
empty [QCheck.Iter] | |
F | |
find [QCheck.Iter] | |
fix [QCheck.Gen] |
Fixpoint; size decreases
|
float [QCheck.Print] | |
float [QCheck.Gen] | |
float [QCheck] | |
frequency [QCheck.Gen] | |
frequency [QCheck] |
Similar to
QCheck.oneof but with frequencies
|
frequencya [QCheck.Gen] | |
frequencya [QCheck] |
Same as
QCheck.frequencyl , but with an array
|
frequencyl [QCheck.Gen] | |
frequencyl [QCheck] |
Same as
QCheck.oneofl , but each element is paired with its frequency in
the probability distribution (the higher, the more likely)
|
fun1 [QCheck] |
generator of functions of arity 1.
|
fun2 [QCheck] |
generator of functions of arity 2.
|
G | |
generate [QCheck.Gen] | generate ~n g generates n instances of g
|
generate1 [QCheck.Gen] | generate1 g generates one instance of g
|
get_arbitrary [QCheck.Test] | |
get_law [QCheck.Test] | |
get_name [QCheck.Test] | |
I | |
int [QCheck.Shrink] | |
int [QCheck.Print] | |
int [QCheck.Gen] |
uniform int
|
int [QCheck] |
int generator.
|
int32 [QCheck] |
int32 generator.
|
int64 [QCheck] |
int generator.
|
int_bound [QCheck.Gen] |
Uniform within
0... bound
|
int_bound [QCheck] | int_bound n is uniform between 0 and n included
|
int_range [QCheck.Gen] |
Uniform within
low,high
|
int_range [QCheck] | int_range a b is uniform between a and b included.
|
J | |
join [QCheck.Gen] | |
L | |
list [QCheck.Shrink] |
Try to shrink lists by removing elements one by one.
|
list [QCheck.Print] | |
list [QCheck.Gen] | |
list [QCheck] |
generates lists with length generated by
small_int
|
list_of_size [QCheck] |
generates lists with length from the given distribution
|
list_repeat [QCheck.Gen] | |
list_size [QCheck.Gen] | |
M | |
make [QCheck.Test] | make arb prop builds a test that checks property prop on instances
of the generator arb .
|
make [QCheck] |
Builder for arbitrary.
|
make_cell [QCheck.Test] | make arb prop builds a test that checks property prop on instances
of the generator arb .
|
map [QCheck.Iter] | |
map [QCheck.Gen] | |
map [QCheck] | map f a returns a new arbitrary instance that generates values using
a#gen and then transforms them through f .
|
map2 [QCheck.Iter] | |
map2 [QCheck.Gen] | |
map3 [QCheck.Gen] | |
map_keep_input [QCheck.Gen] | |
map_keep_input [QCheck] | map_keep_input f a generates random values from a , and maps them into
values of type 'b using the function f , but it also keeps the
original value.
|
map_same_type [QCheck] |
Specialization of
map when the transformation preserves the type, which
makes shrinker, printer, etc.
|
N | |
nat [QCheck.Gen] |
small nat
|
neg_float [QCheck] |
negative float generator (no nan and no infinities)
|
neg_int [QCheck.Gen] |
negative int
|
neg_int [QCheck] |
negative int generator.
|
nfloat [QCheck.Gen] |
negative float
|
nil [QCheck.Shrink] |
No shrink
|
numeral [QCheck.Gen] | |
numeral_char [QCheck] |
uniformy distributed over
'0'..'9'
|
numeral_string [QCheck] |
generates strings with a distribution of length of
small_int
and distribution of characters of numeral_char
|
numeral_string_of_size [QCheck] |
generates strings with a distribution of characters of
numeral_char
|
O | |
of_array [QCheck.Iter] | |
of_list [QCheck.Iter] | |
oneof [QCheck.Gen] | |
oneof [QCheck] |
Pick a generator among the list, randomly
|
oneofa [QCheck.Gen] | |
oneofa [QCheck] |
Pick an element randomly in the array
|
oneofl [QCheck.Gen] | |
oneofl [QCheck] |
Pick an element randomly in the list
|
opt [QCheck.Gen] | |
option [QCheck.Shrink] | |
option [QCheck.Print] | |
option [QCheck] |
choose between returning Some random value, or None
|
P | |
pair [QCheck.Shrink] | |
pair [QCheck.Iter] | |
pair [QCheck.Print] | |
pair [QCheck.Gen] | |
pair [QCheck] |
combines two generators into a generator of pairs
|
pfloat [QCheck.Gen] |
positive float
|
pint [QCheck.Gen] |
positive uniform int
|
pos_float [QCheck] |
positive float generator (no nan and no infinities)
|
pos_int [QCheck] |
positive int generator.
|
print_c_ex [QCheck.Test] | |
print_error [QCheck.Test] | |
print_fail [QCheck.Test] | |
print_instance [QCheck.Test] | |
print_test_error [QCheck.Test] | |
print_test_fail [QCheck.Test] | |
printable [QCheck.Gen] | |
printable_char [QCheck] | |
printable_string [QCheck] |
generates strings with a distribution of length of
small_int
and distribution of characters of printable_char
|
printable_string_of_size [QCheck] |
generates strings with distribution of characters of
printable_char
|
Q | |
quad [QCheck.Print] | |
quad [QCheck.Gen] | |
R | |
random_state [QCheck_runner] |
Access the current random state
|
return [QCheck.Iter] | |
return [QCheck.Gen] | |
run [QCheck_runner] | run test runs the test, and returns an error code that is 0
if all tests passed, 1 otherwise.
|
run_tap [QCheck_runner] |
TAP-compatible test runner, in case we want to use a test harness.
|
run_tests [QCheck_runner] |
Run a suite of tests, and print its results.
|
run_tests_main [QCheck_runner] |
Can be used as the main function of a test file.
|
S | |
set_collect [QCheck] | |
set_name [QCheck.Test] | |
set_print [QCheck] | |
set_seed [QCheck_runner] |
Change the
QCheck_runner.random_state by creating a new one, initialized with
the given seed.
|
set_shrink [QCheck] | |
set_small [QCheck] | |
set_verbose [QCheck_runner] |
Change the value of
verbose ()
|
shuffle_a [QCheck.Gen] |
Shuffle the array in place
|
shuffle_l [QCheck.Gen] | |
sized [QCheck.Gen] | |
sized_size [QCheck.Gen] | |
small_int [QCheck.Gen] |
Synonym to
QCheck.Gen.nat
|
small_int [QCheck] |
positive int generator.
|
small_int_corners [QCheck] |
As
small_int , but each newly created generator starts with
a list of corner cases before falling back on random generation.
|
small_printable_string [QCheck] | |
small_string [QCheck.Gen] | |
small_string [QCheck] |
Same as
QCheck.string but with a small length (that is, 0--10 )
|
string [QCheck.Shrink] | |
string [QCheck.Print] | |
string [QCheck.Gen] | |
string [QCheck] |
generates strings with a distribution of length of
small_int
and distribution of characters of char
|
string_gen [QCheck] |
generates strings with a distribution of length of
small_int
|
string_gen_of_size [QCheck] | |
string_of_size [QCheck] |
generates strings with distribution of characters if
char
|
string_size [QCheck.Gen] | |
T | |
to_ounit2_test [QCheck_runner] | to_ounit2_test ?rand t wraps t into a OUnit2 test
|
to_ounit2_test_list [QCheck_runner] | to_ounit2_test_list ?rand t like to_ounit2_test but for a list of tests
|
to_ounit_test [QCheck_runner] | to_ounit_test ~rand t wraps t into a OUnit test
|
to_ounit_test_cell [QCheck_runner] |
Same as
QCheck_runner.to_ounit_test but with a polymorphic test cell
|
triple [QCheck.Shrink] | |
triple [QCheck.Iter] | |
triple [QCheck.Print] | |
triple [QCheck.Gen] | |
triple [QCheck] |
combines three generators into a generator of 3-uples
|
U | |
ui32 [QCheck.Gen] | |
ui64 [QCheck.Gen] | |
unit [QCheck.Gen] | |
unit [QCheck] |
always generates
() , obviously.
|
V | |
verbose [QCheck_runner] |
Is the default mode verbose or quiet?
|