stedolan / crowbar

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

Bytes and string generators #52

Open pascutto opened 5 years ago

pascutto commented 5 years ago

Hi ! First of all thanks for this great tool !

I've been willing to use it over the past few days, and when I needed to generate bytes and strings, I realized:

Of course, one could easily use map to get a string gen out of a bytes gen, but it would also probably be easier to use and understand if Crowbar could provide generators for basic types, named accordingly.

So, here is my proposal (I'd be happy to open a PR for that):