mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
more tests
This commit is contained in:
parent
b3c796176d
commit
d4fafab9b7
2 changed files with 7 additions and 1 deletions
|
|
@ -81,6 +81,12 @@ let rev s =
|
|||
Q.printable_string (fun s -> length s = length (rev s))
|
||||
*)
|
||||
|
||||
(*$Q
|
||||
Q.printable_string (fun s -> \
|
||||
rev s = (to_list s |> List.rev |> of_list))
|
||||
*)
|
||||
|
||||
|
||||
(*$=
|
||||
"abc" (rev "cba")
|
||||
"" (rev "")
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ end
|
|||
open Q.Gen
|
||||
let g_char = map Char.chr (Char.code 'A' -- Char.code 'z')
|
||||
let g_str = string_size ~gen:g_char (0--10)
|
||||
let a_str = {Q.string with Q.gen=g_str}
|
||||
let a_str = Q.set_gen g_str Q.string
|
||||
*)
|
||||
|
||||
module MakeFromArray(A:Array.S) : S with module Array = A = struct
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue