"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/Tests/Writers/OOXML.hs" between
pandoc-2.14.0.3.tar.gz and pandoc-2.14.1.tar.gz

About: Pandoc converts files from one markup format into another.

OOXML.hs  (pandoc-2.14.0.3):OOXML.hs  (pandoc-2.14.1)
skipping to change at line 58 skipping to change at line 58
goldenArchive :: FilePath -> IO Archive goldenArchive :: FilePath -> IO Archive
goldenArchive fp = toArchive . BL.fromStrict <$> BS.readFile fp goldenArchive fp = toArchive . BL.fromStrict <$> BS.readFile fp
testArchive :: (WriterOptions -> Pandoc -> PandocIO BL.ByteString) testArchive :: (WriterOptions -> Pandoc -> PandocIO BL.ByteString)
-> WriterOptions -> WriterOptions
-> FilePath -> FilePath
-> IO Archive -> IO Archive
testArchive writerFn opts fp = do testArchive writerFn opts fp = do
txt <- T.readFile fp txt <- T.readFile fp
bs <- runIOorExplode $ readNative def txt >>= writerFn opts bs <- runIOorExplode $ do
setTranslations "en-US"
readNative def txt >>= writerFn opts
return $ toArchive bs return $ toArchive bs
compareFileList :: FilePath -> Archive -> Archive -> Maybe String compareFileList :: FilePath -> Archive -> Archive -> Maybe String
compareFileList goldenFP goldenArch testArch = compareFileList goldenFP goldenArch testArch =
let testFiles = filesInArchive testArch let testFiles = filesInArchive testArch
goldenFiles = filesInArchive goldenArch goldenFiles = filesInArchive goldenArch
diffTestGolden = testFiles \\ goldenFiles diffTestGolden = testFiles \\ goldenFiles
diffGoldenTest = goldenFiles \\ testFiles diffGoldenTest = goldenFiles \\ testFiles
results = results =
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)