stedolan / crowbar

Property fuzzing for OCaml
MIT License
180 stars 31 forks source link

add array and array1 #69

Closed zapashcanon closed 1 year ago

zapashcanon commented 1 year ago

Hi,

I added array and array1 as I was tired of writing let* x = list y in let x = Array.of_list x.

I copy-pasted the new pp_print_iter from the Stdlib and redefined pp_list with it (and added pp_array).

The code for generating the arrays is calling list and list1 and then converting them to arrays. It's probably not the more efficient way to write it but the diff is short and it's obviously correct.

stedolan commented 1 year ago

Looks good, thanks!

zapashcanon commented 1 year ago

Thanks ! :) Is there any chance that you publish a new release on opam including this and the new Syntax module ?