We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, guys. How can I see what kind of data my generator produces?
Let's say I have the following generator:
-module (my). -include_lib("triq/include/triq.hrl"). -export([valid_type_gen/1]). valid_type_gen() -> non_empty(list(any())).
I would like to examine what kind of data it generates, i.e. something like:
$ rebar3 shell 1> my:valid_type_gen().sample() %??? [1,b,"blah"]
This is an SO question: http://stackoverflow.com/questions/36440822/how-to-get-a-sample-of-a-generator
P.S.: I created a Triq tag on SO.
The text was updated successfully, but these errors were encountered:
Ok, got it:
triq_dom:pick(my:valid_type_gen(), 10).
Sorry, something went wrong.
No branches or pull requests
Hi, guys.
How can I see what kind of data my generator produces?
Let's say I have the following generator:
I would like to examine what kind of data it generates, i.e. something like:
This is an SO question:
http://stackoverflow.com/questions/36440822/how-to-get-a-sample-of-a-generator
P.S.: I created a Triq tag on SO.
The text was updated successfully, but these errors were encountered: