aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-01-22 13:39:59 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-01-22 13:39:59 -0800
commitc801f4f6219fc8248ccdb5a1651662fd79ea9285 (patch)
tree432fca139c6ec94ed04abe2aab94e978588ec423 /tests/Tests
parent61c0647d49b8f643238423a0c537176df8c855ed (diff)
downloadpandoc-c801f4f6219fc8248ccdb5a1651662fd79ea9285.tar.gz
Put dashed lines around diff results in Old test.
Diffstat (limited to 'tests/Tests')
-rw-r--r--tests/Tests/Old.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/Tests/Old.hs b/tests/Tests/Old.hs
index d73d731fb..bc6452dc3 100644
--- a/tests/Tests/Old.hs
+++ b/tests/Tests/Old.hs
@@ -33,8 +33,11 @@ data TestResult = TestPassed
instance Show TestResult where
show TestPassed = "PASSED"
show (TestError ec) = "ERROR " ++ show ec
- show (TestFailed cmd file d) = "\n--- " ++ file ++
- "\n+++ " ++ cmd ++ "\n" ++ showDiff (1,1) d
+ show (TestFailed cmd file d) = '\n' : dash ++
+ "\n--- " ++ file ++
+ "\n+++ " ++ cmd ++ "\n" ++ showDiff (1,1) d ++
+ dash
+ where dash = replicate 72 '-'
showDiff :: (Int,Int) -> [(DI, String)] -> String
showDiff _ [] = ""