Affects Version/s: None
Fix Version/s: None
From the original description:
I would like the ability to control / enhance / replace the output generated when a test fails. Printing the raw values works well as long as those values have a useful output for the test at hand, but this doesn't always hold true.
To give a bit of background, I was playing with generating sequences of partially-applied functions and then applying them to an initial state. Here's a small excerpt from the full gist:
What would be more useful to me is if the output had something like this, which is more meaningful:
In this example, (- 45 %) is all my custom output string. 45 is a value from an upstream generator (and would thus change), and % is just a string modeled after the anonymous function syntax.
I could even see my particular application rolled up as a generator:
Which could handle some of the heavy lifting for the user.