Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
test-citeproc.hs: More UTF8 IO functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Nov 14, 2015
1 parent 2116dc9 commit 33ae55e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test-citeproc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ showDiff expected' result' =
withSystemTempDirectory "test-pandoc-citeproc-XXX" $ \fp -> do
let expectedf = fp </> "expected"
let actualf = fp </> "actual"
writeFile expectedf expected'
writeFile actualf result'
UTF8.writeFile expectedf expected'
UTF8.writeFile actualf result'
withDirectory fp $ void $ rawSystem "diff" ["-u","expected","actual"]

withDirectory :: FilePath -> IO a -> IO a
Expand Down Expand Up @@ -238,7 +238,7 @@ main = do
putStrLn "Copying existing test-citeproc.log to test-citeproc.log.old"
copyFile "test-citeproc.log" "test-citeproc.log.old"
putStrLn "Writing test-citeproc.log."
writeFile "test-citeproc.log" summary
UTF8.writeFile "test-citeproc.log" summary
exitWith $ if numfailures == 0
then ExitSuccess
else ExitFailure $ numfailures + numerrors

0 comments on commit 33ae55e

Please sign in to comment.