diff options
Diffstat (limited to 'tests/Tests/Readers')
| -rw-r--r-- | tests/Tests/Readers/Docx.hs | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Tests/Readers/Docx.hs b/tests/Tests/Readers/Docx.hs index 14bae19b0..8ced43907 100644 --- a/tests/Tests/Readers/Docx.hs +++ b/tests/Tests/Readers/Docx.hs @@ -62,7 +62,8 @@ testCompare = testCompareWithOpts defopts  testForWarningsWithOptsIO :: ReaderOptions -> String -> FilePath -> [String] -> IO Test  testForWarningsWithOptsIO opts name docxFile expected = do    df <- B.readFile docxFile -  warns <-  runIOorExplode (readDocx opts df >> P.getWarnings) +  logs <-  runIOorExplode (readDocx opts df >> P.getLog) +  let warns = [s | (WARNING, s) <- logs]    return $ test id name (unlines warns, unlines expected)  testForWarningsWithOpts :: ReaderOptions -> String -> FilePath -> [String] -> Test  | 
