git.iko.soy/typeable/pandoc
on master help sign in
Merge branch 'tests' of github.com:xabbu42/pandoc into tests
commitdaf5444e243ad02bbe2b32a77bbc0b1d53e5cf4c authorNathan Gass <gass@search.ch> dateWed 12 Jan 2011, 19:13 (16 years ago) parent6fbd446e9f1de6
1 file changed+6−3
tests/Tests/Old.hs+6−3
tests/Tests/Old.hs+6−3
@@ -38,9 +38,12 @@ instance Show TestResult where
3838
3939showDiff :: (Int,Int) -> [(DI, String)] -> String
4040showDiff _ [] = ""
41−showDiff (l,r) ((F, ln) : ds) = printf "%4d +" l ++ ln ++ "\n" ++ showDiff (l+1,r) ds
42−showDiff (l,r) ((S, ln) : ds) = printf "%4d -" r ++ ln ++ "\n" ++ showDiff (l,r+1) ds
43−showDiff (l,r) ((B, _ ) : ds) = showDiff (l+1,r+1) ds
41+showDiff (l,r) ((F, ln) : ds) =
42+ printf "+%4d " l ++ ln ++ "\n" ++ showDiff (l+1,r) ds
43+showDiff (l,r) ((S, ln) : ds) =
44+ printf "-%4d " r ++ ln ++ "\n" ++ showDiff (l,r+1) ds
45+showDiff (l,r) ((B, _ ) : ds) =
46+ showDiff (l+1,r+1) ds
4447
4548tests :: [Test]
4649tests = [ testGroup "markdown" [ testGroup "writer" (writerTests "markdown" ++ lhsWriterTests "markdown")