gfredericks / test.chuck

A utility library for test.check
Eclipse Public License 1.0
214 stars 26 forks source link

Shrunk case should be reported using pr-str #43

Closed metametadata closed 8 years ago

metametadata commented 8 years ago

First of all, great lib!

I'd like to suggest wrapping shrunk case data into (pr-str ...) to make reports more readable. E.g. at the moment it would print vector of empty strings like this:

smallest case: [{v [  ]}]

but after wrapping into pr-str it would become:

smallest case: [{v ["" "" ""]}]
gfredericks commented 8 years ago

This happens when using the com.gfredericks.test.chuck.clojure-test namespace?

metametadata commented 8 years ago

Yes, when I use checking macro.

gfredericks commented 8 years ago

Okay, cool. I imagine adding a pr-str to the end of the threading form on this line would probably fix it.

metametadata commented 8 years ago

Yeah, it should.

gfredericks commented 8 years ago

This should be fixed by #44, and is released in 0.2.6.