In ScalaTest you can distinguish between expected and actual values in assertions using the assertResult
macro like this:
assertResult(expected) { actual }
This will print a "Expected X, but got Y
" message when the test fails, instead of the usual "X did not equal Y
".
How would you achieve a similar thing using (should
, must
, etc.) Matchers?