more tests

This commit is contained in:
Simon Cruanes 2018-02-07 20:38:01 -06:00
parent b3c796176d
commit d4fafab9b7
2 changed files with 7 additions and 1 deletions

View file

@ -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 "")

View file

@ -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