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 :)
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 :)