git.iko.soy/typeable/pandoc
on master help sign in
Modified RunTests.hs to strip out '\r' so it will work on Windows.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1412 788f1e2b-df1e-0410-8736-df70ead52e1b

commit23232785769a0dda5a73aa9e17a2ebb7d95277a0 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 14 Aug 2008, 19:54 (18 years ago) parentd00da31
1 file changed+3−2
tests/RunTests.hs+3−2
tests/RunTests.hs+3−2
@@ -106,8 +106,9 @@ runTest testname opts inp norm = do
106106 ec <- waitForProcess ph
107107 result <- if ec == ExitSuccess
108108 then do
109− outputContents <- readFile outputPath
110− normContents <- readFile normPath
109+ -- filter \r so the tests will work on Windows machines
110+ outputContents <- readFile outputPath >>= return . filter (/='r')
111+ normContents <- readFile normPath >>= return . filter (/='r')
111112 if outputContents == normContents
112113 then return TestPassed
113114 else return $ TestFailed $ getDiff (lines outputContents) (lines normContents)