`sig
type 'a t = 'a Raw_quickcheck_generator.t
type 'a obs = 'a Raw_quickcheck_observer.t
module Choice :
sig
type 'a t
val original_gen : 'a t -> 'a t
val updated_gen :
'a t ->
keep:[ `All_choices
| `All_choices_except_this_choice
| `Choices_to_the_left_of_this_choice_only
| `Choices_to_the_right_of_this_choice_only
| `This_choice_and_all_choices_to_the_left
| `This_choice_and_all_choices_to_the_right ] ->
'a t
val value : 'a t -> 'a
val attempts_used : 'a t -> int
end
val bind_choice : 'a t -> ('a Choice.t -> 'b t) -> 'b t
val failure : 'a t
val weighted_union : (float * 'a t) list -> 'a t
val of_fun : (unit -> 'a t) -> 'a t
val choose :
'a t ->
random_float_between_zero_and_one:(unit -> float) ->
max_attempts:int ->
[ `Choice of 'a Choice.t | `No_choices_remain | `Ran_out_of_attempts ]
val inspect :
'a t ->
[ `Failure | `Singleton of 'a | `Weighted_union of (float * 'a t) list ]
val ( >>= ) : 'a t -> ('a -> 'b t) -> 'b t
val ( >>| ) : 'a t -> ('a -> 'b) -> 'b t
module Monad_infix :
sig
val ( >>= ) : 'a t -> ('a -> 'b t) -> 'b t
val ( >>| ) : 'a t -> ('a -> 'b) -> 'b t
end
val bind : 'a t -> ('a -> 'b t) -> 'b t
val return : 'a -> 'a t
val map : 'a t -> f:('a -> 'b) -> 'b t
val join : 'a t t -> 'a t
val ignore_m : 'a t -> unit t
val all : 'a t list -> 'a list t
val all_ignore : unit t list -> unit t
val unit : unit Quickcheck_generator.t
val bool : bool Quickcheck_generator.t
val int : int Quickcheck_generator.t
val float : float Quickcheck_generator.t
val string : string Quickcheck_generator.t
val char : char Quickcheck_generator.t
val sexp : Std_internal.Sexp.t Quickcheck_generator.t
val char_digit : char Quickcheck_generator.t
val char_lowercase : char Quickcheck_generator.t
val char_uppercase : char Quickcheck_generator.t
val char_alpha : char Quickcheck_generator.t
val char_alphanum : char Quickcheck_generator.t
val char_print : char Quickcheck_generator.t
val char_whitespace : char Quickcheck_generator.t
val string_of :
char Quickcheck_generator.t -> string Quickcheck_generator.t
val singleton : 'a -> 'a Quickcheck_generator.t
val doubleton : 'a -> 'a -> 'a Quickcheck_generator.t
val of_list : 'a list -> 'a Quickcheck_generator.t
val union : 'a Quickcheck_generator.t list -> 'a Quickcheck_generator.t
val of_sequence :
?p:Percent.t -> 'a Sequence.t -> 'a Quickcheck_generator.t
val tuple2 :
'a Quickcheck_generator.t ->
'b Quickcheck_generator.t -> ('a * 'b) Quickcheck_generator.t
val tuple3 :
'a Quickcheck_generator.t ->
'b Quickcheck_generator.t ->
'c Quickcheck_generator.t -> ('a * 'b * 'c) Quickcheck_generator.t
val tuple4 :
'a Quickcheck_generator.t ->
'b Quickcheck_generator.t ->
'c Quickcheck_generator.t ->
'd Quickcheck_generator.t -> ('a * 'b * 'c * 'd) Quickcheck_generator.t
val tuple5 :
'a Quickcheck_generator.t ->
'b Quickcheck_generator.t ->
'c Quickcheck_generator.t ->
'd Quickcheck_generator.t ->
'e Quickcheck_generator.t ->
('a * 'b * 'c * 'd * 'e) Quickcheck_generator.t
val tuple6 :
'a Quickcheck_generator.t ->
'b Quickcheck_generator.t ->
'c Quickcheck_generator.t ->
'd Quickcheck_generator.t ->
'e Quickcheck_generator.t ->
'f Quickcheck_generator.t ->
('a * 'b * 'c * 'd * 'e * 'f) Quickcheck_generator.t
val either :
'a Quickcheck_generator.t ->
'b Quickcheck_generator.t -> ('a, 'b) Either.t Quickcheck_generator.t
val variant2 :
'a Quickcheck_generator.t ->
'b Quickcheck_generator.t ->
[ `A of 'a | `B of 'b ] Quickcheck_generator.t
val variant3 :
'a Quickcheck_generator.t ->
'b Quickcheck_generator.t ->
'c Quickcheck_generator.t ->
[ `A of 'a | `B of 'b | `C of 'c ] Quickcheck_generator.t
val variant4 :
'a Quickcheck_generator.t ->
'b Quickcheck_generator.t ->
'c Quickcheck_generator.t ->
'd Quickcheck_generator.t ->
[ `A of 'a | `B of 'b | `C of 'c | `D of 'd ] Quickcheck_generator.t
val variant5 :
'a Quickcheck_generator.t ->
'b Quickcheck_generator.t ->
'c Quickcheck_generator.t ->
'd Quickcheck_generator.t ->
'e Quickcheck_generator.t ->
[ `A of 'a | `B of 'b | `C of 'c | `D of 'd | `E of 'e ]
Quickcheck_generator.t
val variant6 :
'a Quickcheck_generator.t ->
'b Quickcheck_generator.t ->
'c Quickcheck_generator.t ->
'd Quickcheck_generator.t ->
'e Quickcheck_generator.t ->
'f Quickcheck_generator.t ->
[ `A of 'a | `B of 'b | `C of 'c | `D of 'd | `E of 'e | `F of 'f ]
Quickcheck_generator.t
val option : 'a Quickcheck_generator.t -> 'a option Quickcheck_generator.t
val size : int Quickcheck_generator.t
val fn :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
'b Quickcheck_generator.t -> ('a -> 'b) Quickcheck_generator.t
val fn2 :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
'b Quickcheck_generator.obs ->
'c Quickcheck_generator.t -> ('a -> 'b -> 'c) Quickcheck_generator.t
val fn3 :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
'b Quickcheck_generator.obs ->
'c Quickcheck_generator.obs ->
'd Quickcheck_generator.t ->
('a -> 'b -> 'c -> 'd) Quickcheck_generator.t
val fn4 :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
'b Quickcheck_generator.obs ->
'c Quickcheck_generator.obs ->
'd Quickcheck_generator.obs ->
'e Quickcheck_generator.t ->
('a -> 'b -> 'c -> 'd -> 'e) Quickcheck_generator.t
val fn5 :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
'b Quickcheck_generator.obs ->
'c Quickcheck_generator.obs ->
'd Quickcheck_generator.obs ->
'e Quickcheck_generator.obs ->
'f Quickcheck_generator.t ->
('a -> 'b -> 'c -> 'd -> 'e -> 'f) Quickcheck_generator.t
val fn6 :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
'b Quickcheck_generator.obs ->
'c Quickcheck_generator.obs ->
'd Quickcheck_generator.obs ->
'e Quickcheck_generator.obs ->
'f Quickcheck_generator.obs ->
'g Quickcheck_generator.t ->
('a -> 'b -> 'c -> 'd -> 'e -> 'f -> 'g) Quickcheck_generator.t
val compare_fn :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs -> ('a -> 'a -> int) Quickcheck_generator.t
val equal_fn :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs -> ('a -> 'a -> bool) Quickcheck_generator.t
type ('a, 'b) fn_with_sexp = ('a -> 'b) * (unit -> Std_internal.Sexp.t)
val fn_sexp :
('a, 'b) Quickcheck_generator.fn_with_sexp -> Std_internal.Sexp.t
val compare_fn_with_sexp :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
('a, 'a -> int) Quickcheck_generator.fn_with_sexp Quickcheck_generator.t
val equal_fn_with_sexp :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
('a, 'a -> bool) Quickcheck_generator.fn_with_sexp Quickcheck_generator.t
val fn_with_sexp :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
'b Quickcheck_generator.t ->
sexp_of_rng:('b -> Std_internal.Sexp.t) ->
('a, 'b) Quickcheck_generator.fn_with_sexp Quickcheck_generator.t
val fn2_with_sexp :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
'b Quickcheck_generator.obs ->
'c Quickcheck_generator.t ->
sexp_of_rng:('c -> Std_internal.Sexp.t) ->
('a, 'b -> 'c) Quickcheck_generator.fn_with_sexp Quickcheck_generator.t
val fn3_with_sexp :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
'b Quickcheck_generator.obs ->
'c Quickcheck_generator.obs ->
'd Quickcheck_generator.t ->
sexp_of_rng:('d -> Std_internal.Sexp.t) ->
('a, 'b -> 'c -> 'd) Quickcheck_generator.fn_with_sexp
Quickcheck_generator.t
val fn4_with_sexp :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
'b Quickcheck_generator.obs ->
'c Quickcheck_generator.obs ->
'd Quickcheck_generator.obs ->
'e Quickcheck_generator.t ->
sexp_of_rng:('e -> Std_internal.Sexp.t) ->
('a, 'b -> 'c -> 'd -> 'e) Quickcheck_generator.fn_with_sexp
Quickcheck_generator.t
val fn5_with_sexp :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
'b Quickcheck_generator.obs ->
'c Quickcheck_generator.obs ->
'd Quickcheck_generator.obs ->
'e Quickcheck_generator.obs ->
'f Quickcheck_generator.t ->
sexp_of_rng:('f -> Std_internal.Sexp.t) ->
('a, 'b -> 'c -> 'd -> 'e -> 'f) Quickcheck_generator.fn_with_sexp
Quickcheck_generator.t
val fn6_with_sexp :
?branching_factor:int Quickcheck_generator.t ->
'a Quickcheck_generator.obs ->
'b Quickcheck_generator.obs ->
'c Quickcheck_generator.obs ->
'd Quickcheck_generator.obs ->
'e Quickcheck_generator.obs ->
'f Quickcheck_generator.obs ->
'g Quickcheck_generator.t ->
sexp_of_rng:('g -> Std_internal.Sexp.t) ->
('a, 'b -> 'c -> 'd -> 'e -> 'f -> 'g) Quickcheck_generator.fn_with_sexp
Quickcheck_generator.t
val filter_map :
'a Quickcheck_generator.t ->
f:('a -> 'b option) -> 'b Quickcheck_generator.t
val filter :
'a Quickcheck_generator.t -> f:('a -> bool) -> 'a Quickcheck_generator.t
val recursive :
('a Quickcheck_generator.t -> 'a Quickcheck_generator.t) ->
'a Quickcheck_generator.t
val list :
?length:[ `At_least of int
| `At_most of int
| `Between_inclusive of int * int
| `Exactly of int ] ->
?unique:bool ->
?sorted:[ `Arbitrarily | `By of 'a -> 'a -> int ] ->
'a Quickcheck_generator.t -> 'a list Quickcheck_generator.t
val permute : 'a list -> 'a list Quickcheck_generator.t
val int_between :
lower_bound:int Comparable.bound ->
upper_bound:int Comparable.bound -> int Quickcheck_generator.t
type nan_dist = Without | With_single | With_all
val float_between :
nan:Quickcheck_generator.nan_dist ->
lower_bound:float Comparable.bound ->
upper_bound:float Comparable.bound -> float Quickcheck_generator.t
val float_without_nan : float Quickcheck_generator.t
val float_finite : float Quickcheck_generator.t
val sexp_of_fn_with_sexp :
('a -> Sexplib.Sexp.t) ->
('b -> Sexplib.Sexp.t) ->
('a, 'b) Quickcheck_generator.fn_with_sexp -> Sexplib.Sexp.t
end`