Module QCheck2.Print
Printing functions and helpers, used to print generated values on test failures.
val unit : unit tunitis a printer of unit.- since
- 0.6
val int : int tintis a printer of integer.
val bool : bool tboolis a printer of boolean.
val float : float tfloatis a printer of float.
val char : char tcharis a printer of character.
val string : string tstringis a printer of string.
val quad : 'a t -> 'b t -> 'c t -> 'd t -> ('a * 'b * 'c * 'd) tquad p1 p2 p3 p4is a printer of quadruple.
val contramap : ('b -> 'a) -> 'a t -> 'b tcontramap f ptransforms printerpinto another usingf.Note the reverse order of types in
fwhich may be conter-intuitive: indeed a function that prints values of type'bcan be obtained by transforming a value of type'bto'ausingf, and then by printing this value of type'ausingp.