Make test suite failures a bit more readable
commitc421b22832f16461864e449c9faaa20adbae122a
authormrkkrp <mark.karpov@tweag.io>
dateSun 9 Jun 2019, 14:02 (7 years ago)
parent046f14e
tests/Ormolu/PrinterSpec.hs+2−2
@@ -66,9 +66,9 @@ deriveOutput path = parseRelFile $
6666shouldMatch :: Bool -> Text -> Text -> Expectation
6767shouldMatch idempotencyTest actual expected =
6868 when (actual /= expected) . expectationFailure $ unlines
69− [ "expected (" ++ pass ++ "):"
69+ [ ">>>>>>>>>>>>>>>>>>>>>> expected (" ++ pass ++ "):"
7070 , T.unpack expected
71− , "but got:"
71+ , ">>>>>>>>>>>>>>>>>>>>>> but got:"
7272 , T.unpack actual
7373 ]
7474 where