Skip to content

Commit

Permalink
quickSafe: do not call show on already escaped output (haskell#30)
Browse files Browse the repository at this point in the history
This output:

   *** Failed! ... QFilePath "/\\?/a:a"

is much easier to digest than:

   "*** FAILED! ... \NQFILEPATH \"/\\\\?/A:A\"\N"
  • Loading branch information
thomie committed Oct 28, 2014
1 parent c9c1d58 commit 7392405
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/AutoTest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ quickSafe prop = do
res <- quickCheckWithResult stdArgs{chatty=False, maxSuccess=10000} prop
case res of
Success{} -> return ()
_ -> error $ show res
-- Output is already escaped. Do not call show on it, but print as-is.
_ -> error $ show res{output=""} ++ "\n" ++ (output res)

0 comments on commit 7392405

Please sign in to comment.