doc: https://hexdocs.pm/randex/Randex.html
github: https://github.com/ananthakumaran/randex
1 Like
Oh hey, this would be awesome to use with stream_data or proper if we can seed it properly.
property "starts with cat" do
check all cat <- Randex.stream(~r/cat \w/, mod: Randex.Generator.StreamData) do
assert String.starts_with?(cat, "cat")
end
end
It does have stream_data based generator.
2 Likes