proper icon indicating copy to clipboard operation
proper copied to clipboard

Pretty-printing of shrinked testcase

Open si14 opened this issue 14 years ago • 3 comments

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 avatar Sep 07 '11 13:09 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 avatar Sep 16 '11 18:09 si14

Any updates here?

si14 avatar May 04 '12 10:05 si14

Hey?

si14 avatar Jul 12 '12 16:07 si14