drunkcod / Cone

8 stars 1 forks source link

Formatting of failed expectations for strings #4

Closed neochrome closed 14 years ago

neochrome commented 14 years ago

When an expectation fails then a message is shown like: Something == "expected" expected: expected actual: actual

But if the strings compared contains whitespace at the end it's kinda hard to see why it's failing, like this: Something == "expected" expected: expected actual: expected

I propose a small formatting change to this (in the case of strings): Something == "expected" expected: "expected" actual: "expected "

Then it would be easier to see what's actually wrong :)

drunkcod commented 14 years ago

Added to HEAD and will be available in the next release.