mirror of
https://github.com/google/ormolu.git
synced 2025-01-07 15:50:27 +03:00
Make test suite failures a bit more readable
This commit is contained in:
parent
046f14e7e5
commit
c421b22832
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user