Open CliveEvans opened 8 years ago
This is a good suggestion. I've started making the change, and will finish it when I get a break from my busy life.
I started work on it and got a little hung up trying to make the output look nice. It turns out describing matchers don't really generate language that neatly strings together and I stalled trying to be too much of a perfectionist.
We're relying on the toString to give meaningful errors, which works ok while the thing that's being wrapped has a nice toString implementation, but fails horribly when it doesn't, even if the matcher being passed in returns a nice message ...