slagyr / speclj

pronounced "speckle": a TDD/BDD framework for Clojure.
MIT License
459 stars 58 forks source link

nicer printing for lazy seqs (likely other objects as well) #1

Closed trptcolin closed 13 years ago

trptcolin commented 14 years ago

I noticed when trying out speclj that a failing test of mine was showing something like this:

Expected: <(1 2 3)>
     got: <clojure.lang.LazySeq@7842> (using =)

Using pr-str on the thing being evaluated gives a more correct answer. I needed to change an existing spec to make this change, but I think that one is also a correction rather than a problem: adds quotes to the should-throw error message for when the Exception message differs. Since that value is a string, it makes sense to have it quoted inside the angle brackets (<"Not my message"> instead of ).

Thoughts?

Colin

trptcolin commented 13 years ago

This was fixed.