mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
fix for qtest 2.2
This commit is contained in:
parent
22b001c600
commit
2e5a360bcd
1 changed files with 2 additions and 2 deletions
|
|
@ -1159,8 +1159,8 @@ module Str = struct
|
|||
let rand_str_ ?(among="abcdefgh") n =
|
||||
let module Q = QCheck in
|
||||
let st = Random.State.make [| n + 17 |] in
|
||||
let gen_c = Q.Gen.oneofl (CCString.to_list among) in
|
||||
Q.Gen.string_size ~gen:gen_c (Q.Gen.return n) st
|
||||
let gen_c = QCheck.Gen.oneofl (CCString.to_list among) in
|
||||
QCheck.Gen.string_size ~gen:gen_c (QCheck.Gen.return n) st
|
||||
|
||||
let find ?(start=0) ~sub s =
|
||||
let n = String.length sub in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue