Skip to content
New issue

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

Failing call sequences are not pretty printed #132

Open
ijt opened this issue Jan 2, 2017 · 0 comments
Open

Failing call sequences are not pretty printed #132

ijt opened this issue Jan 2, 2017 · 0 comments

Comments

@ijt
Copy link

ijt commented Jan 2, 2017

Here is an example of output when a test fails:

...
Shrinking .(1 time(s))
[{set,{var,1},{call,kv_store,put,[c,'3']}},{set,{var,2},{call,kv_store,erase,[c]}},{set,{var,3},{call,kv_store,put,[c,'3']}}]
History: [{[],''},{[{c,'3'}],'3'},{[],'3'}]
State: []
Res: {postcondition,false}

The call sequence could be more readably printed by putting it through Erlang's rp/1 function first:

[{set,{var,1},{call,kv_store,put,[c,'3']}},
{set,{var,2},{call,kv_store,erase,[c]}},
{set,{var,3},{call,kv_store,put,[c,'3']}}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant