Closed philomates closed 2 years ago
This would also address https://github.com/nubank/matcher-combinators/issues/17
I find this helpful and without disadvantages, open a PR!
I almost always can't remember if yellow is expected or actual
I've been there
Mismatch information in a test failure is printed such that the
expected
data is in yellow and theactual
data is in red. I almost always can't remember if yellow isexpected
oractual
. I imagine others encounter the same trouble.To help us remember what is what, I thought we could annotate the yellow data in a
(expected ..)
and the red data in(actual ..)
If folks like this idea I'll open a patch for it.
The only downside I can imagine is more information in mismatch output, which could add to cluttered feeling
before
after