We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa3f668 commit b2dbfc7Copy full SHA for b2dbfc7
src/io/stm_tests.ml
@@ -60,8 +60,12 @@ struct
60
let int64_gen = Gen.(map Int64.of_int small_int) in
61
let char_gen = Gen.printable in
62
let byte_gen = Gen.small_int in
63
- let string_gen = Gen.small_string in
64
- let bytes_gen = Gen.bytes_small in
+ let size_gen =
+ Gen.(map2 (fun pos size_adj ->
65
+ let res = 1 lsl (pos-1) in
66
+ if size_adj < res then res-size_adj else res) (int_bound 18) (int_bound 10)) in
67
+ let string_gen = Gen.(string_size (oneof [small_nat; size_gen])) in
68
+ let bytes_gen = Gen.(bytes_size (oneof [small_nat; size_gen])) in
69
QCheck.make ~print:show_cmd (*~shrink:shrink_cmd*)
70
(match s with
71
| Closed ->
0 commit comments