val test :
count:int ->
?print:'generated QCheck2.Print.t ->
'generated QCheck2.Gen.t ->
(unit -> ('b, 'c) Preface_laws.Law.t) ->
(('b -> 'c) -> ('b -> 'c) -> 'generated -> bool) ->
QCheck2.Test.tAn helper to deal with test definition
Generators
Additional generators.
val gen_either :
'a QCheck2.Gen.t ->
'b QCheck2.Gen.t ->
('a, 'b) Stdlib.Either.t QCheck2.Gen.tval gen_result :
'a QCheck2.Gen.t ->
'b QCheck2.Gen.t ->
('a, 'b) Stdlib.Result.t QCheck2.Gen.tval gen_try : 'a QCheck2.Gen.t -> ('a, exn) Stdlib.Result.t QCheck2.Gen.tval gen_exn : exn QCheck2.Gen.tAdditional observers
val obs_either :
'a QCheck2.Observable.t ->
'b QCheck2.Observable.t ->
('a, 'b) Stdlib.Either.t QCheck2.Observable.tval obs_result :
'a QCheck2.Observable.t ->
'b QCheck2.Observable.t ->
('a, 'b) Stdlib.Result.t QCheck2.Observable.tval obs_try :
'a QCheck2.Observable.t ->
('a, exn) Stdlib.Result.t QCheck2.Observable.tval obs_exn : exn QCheck2.Observable.tPretty-printers
Additional pretty-printer.
val pp_either :
(Stdlib.Format.formatter -> 'a -> unit) ->
(Stdlib.Format.formatter -> 'b -> unit) ->
Stdlib.Format.formatter ->
('a, 'b) Stdlib.Either.t ->
unitval pp_result :
(Stdlib.Format.formatter -> 'a -> unit) ->
(Stdlib.Format.formatter -> 'b -> unit) ->
Stdlib.Format.formatter ->
('a, 'b) Stdlib.Result.t ->
unitval pp_try :
(Stdlib.Format.formatter -> 'a -> unit) ->
Stdlib.Format.formatter ->
('a, exn) Stdlib.Result.t ->
unitval pp_exn : Stdlib.Format.formatter -> exn -> unitEquality
Additional equivalence function.
val equal_pair :
('a -> 'a -> bool) ->
('b -> 'b -> bool) ->
('a * 'b) ->
('a * 'b) ->
boolval equal_either :
('a -> 'a -> bool) ->
('b -> 'b -> bool) ->
('a, 'b) Stdlib.Either.t ->
('a, 'b) Stdlib.Either.t ->
boolval equal_exn : exn -> exn -> bool