Pretty-printing of shrinked testcase #16

Open
si14 opened this Issue Sep 7, 2011 · 3 comments

Projects

None yet

1 participant

@si14

Is there any reason to not represent things like

[{init,{state,undefined,{array,0,10,empty,10},208740,large,last}},{set,{var,1},{call,ecirca,new,[208740,last,large]}},{set,{var,4},{call,ecirca,set,[{call,erlang,element,[2,{var,1}]},158910,256964645335393280]}},{set,{var,6},{call,ecirca,slice,[{call,erlang,element,[2,{var,1}]},207505,131476]}}]

as

A = ecirca:new(208740,last,large),
B = ecirca:set(erlang:element(2, A), 158910, 256964645335393280),
C = ecirca:slice(erlang:element(2, A), 207505,131476)

?
And, of course, thanks for an awesome job :)

@si14

Just in case if you are interested, here is a quick implementation:
https://github.com/spawngrid/proper_stdlib/blob/master/src/proper_report.erl
Here is one of test cases:
https://gist.github.com/ee4e3e6123f3d868ca12

@si14

Any updates here?

@si14

Hey?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment