@@ -155,16 +155,12 @@ let gen_deconstructible gen print eq = GenDeconstr (gen,print,eq)
155
155
156
156
let qcheck_nat64_small = QCheck. (map Int64. of_int small_nat)
157
157
158
- let print_char c = Printf. sprintf " %C" c
159
- let print_string s = Printf. sprintf " %S" s
160
- let print_bytes b = print_string (Bytes. to_string b)
161
-
162
158
let bytes_small_printable = QCheck. bytes_small_of QCheck.Gen. printable
163
159
164
160
let unit = GenDeconstr (QCheck. unit , QCheck.Print. unit , (= ))
165
161
let bool = GenDeconstr (QCheck. bool , QCheck.Print. bool , (= ))
166
- let char = GenDeconstr (QCheck. char , print_char, (= ))
167
- let char_printable = GenDeconstr (QCheck. printable_char, print_char, (= ))
162
+ let char = GenDeconstr (QCheck. char , QCheck.Print. char , (= ))
163
+ let char_printable = GenDeconstr (QCheck. printable_char, QCheck.Print. char , (= ))
168
164
let nat_small = GenDeconstr (QCheck. small_nat, QCheck.Print. int , (= ))
169
165
let int = GenDeconstr (QCheck. int , QCheck.Print. int , (= ))
170
166
let int_small = GenDeconstr (QCheck. small_int, QCheck.Print. int , (= ))
@@ -173,13 +169,13 @@ let int_bound b = GenDeconstr (QCheck.int_bound b, QCheck.Print.int, (=))
173
169
let int32 = GenDeconstr (QCheck. int32 , Int32. to_string, Int32. equal)
174
170
let int64 = GenDeconstr (QCheck. int64 , Int64. to_string, Int64. equal)
175
171
let nat64_small = GenDeconstr (qcheck_nat64_small, Int64. to_string, Int64. equal)
176
- let float = GenDeconstr (QCheck. float , Float. to_string, Float. equal)
177
- let string = GenDeconstr (QCheck. string , print_string, String. equal)
178
- let string_small = GenDeconstr (QCheck. small_string, print_string, String. equal)
179
- let string_small_printable = GenDeconstr (QCheck. small_printable_string, print_string, String. equal)
180
- let bytes = GenDeconstr (QCheck. bytes, print_bytes, Bytes. equal)
181
- let bytes_small = GenDeconstr (QCheck. bytes_small, print_bytes, Bytes. equal)
182
- let bytes_small_printable = GenDeconstr (bytes_small_printable, print_bytes, Bytes. equal)
172
+ let float = GenDeconstr (QCheck. float , QCheck.Print. float , Float. equal)
173
+ let string = GenDeconstr (QCheck. string , QCheck.Print. string , String. equal)
174
+ let string_small = GenDeconstr (QCheck. small_string, QCheck.Print. string , String. equal)
175
+ let string_small_printable = GenDeconstr (QCheck. small_printable_string, QCheck.Print. string , String. equal)
176
+ let bytes = GenDeconstr (QCheck. bytes, QCheck.Print. bytes, Bytes. equal)
177
+ let bytes_small = GenDeconstr (QCheck. bytes_small, QCheck.Print. bytes, Bytes. equal)
178
+ let bytes_small_printable = GenDeconstr (bytes_small_printable, QCheck.Print. bytes, Bytes. equal)
183
179
184
180
let option : type a c s. ?ratio:float -> (a, c, s, combinable) ty -> (a option, c, s, combinable) ty =
185
181
fun ?ratio ty ->
0 commit comments