From c421b22832f16461864e449c9faaa20adbae122a Mon Sep 17 00:00:00 2001 From: mrkkrp Date: Sun, 9 Jun 2019 14:02:19 +0200 Subject: [PATCH] Make test suite failures a bit more readable --- tests/Ormolu/PrinterSpec.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Ormolu/PrinterSpec.hs b/tests/Ormolu/PrinterSpec.hs index 79d11fc..bc5d7b6 100644 --- a/tests/Ormolu/PrinterSpec.hs +++ b/tests/Ormolu/PrinterSpec.hs @@ -66,9 +66,9 @@ deriveOutput path = parseRelFile $ shouldMatch :: Bool -> Text -> Text -> Expectation shouldMatch idempotencyTest actual expected = when (actual /= expected) . expectationFailure $ unlines - [ "expected (" ++ pass ++ "):" + [ ">>>>>>>>>>>>>>>>>>>>>> expected (" ++ pass ++ "):" , T.unpack expected - , "but got:" + , ">>>>>>>>>>>>>>>>>>>>>> but got:" , T.unpack actual ] where