whatyouhide / stream_data

Data generation and property-based testing for Elixir. 🔮
https://hexdocs.pm/stream_data
864 stars 66 forks source link

Add :utf8 option to string/1 and add chardata/0 #187

Closed sabiwara closed 1 year ago

sabiwara commented 1 year ago

As discussed, existing options can only generate subsets of valid strings (e.g. printable), this PR adds a :utf8 option generating all of them.

It also adds a chardata/0 generator, similar to iodata/0 and relying on the utf8 generator above.

whatyouhide commented 1 year ago

Fantastic, thanks @sabiwara! 💟