mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 03:35:30 -05:00
update test
This commit is contained in:
parent
504df0c0a4
commit
65d7c6d3ae
1 changed files with 6 additions and 1 deletions
|
|
@ -358,10 +358,15 @@ let parse_string s : t or_error =
|
|||
| `List l -> Q.Iter.map mklist (Q.Shrink.list ~shrink l)
|
||||
in
|
||||
Q.make ~print ~small ~shrink gen
|
||||
|
||||
let rec sexp_valid = function
|
||||
| `Atom "" -> false
|
||||
| `Atom _ -> true
|
||||
| `List l -> List.for_all sexp_valid l
|
||||
*)
|
||||
|
||||
(*$Q & ~count:30
|
||||
sexp_gen (fun s -> to_string s |> parse_string = `Ok s)
|
||||
sexp_gen (fun s -> sexp_valid s ==> (to_string s |> parse_string = `Ok s))
|
||||
*)
|
||||
|
||||
let parse_chan ?bufsize ic =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue