aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Readers/Docx.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-08-11 20:38:23 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-08-11 20:38:23 -0700
commit4c88e64894af56a71a15289a70b2ae7950157f86 (patch)
tree4a9f2b07c691c2af7ffa119c56b1ec8478b0c4f4 /tests/Tests/Readers/Docx.hs
parent86d4da994a2e8a091aea325d9738f3b99ab4dbca (diff)
parent45ec035e93ec0c32f9fb7d7f2f99ca17de73ebf9 (diff)
downloadpandoc-4c88e64894af56a71a15289a70b2ae7950157f86.tar.gz
Merge pull request #1522 from jkr/dropCap
Drop cap
Diffstat (limited to 'tests/Tests/Readers/Docx.hs')
-rw-r--r--tests/Tests/Readers/Docx.hs10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/Tests/Readers/Docx.hs b/tests/Tests/Readers/Docx.hs
index c310cc8d7..65fdd4a55 100644
--- a/tests/Tests/Readers/Docx.hs
+++ b/tests/Tests/Readers/Docx.hs
@@ -82,14 +82,14 @@ compareMediaBagIO docxFile = do
df <- B.readFile docxFile
let (_, mb) = readDocx def df
bools <- mapM
- (\(fp, _, _) -> compareMediaPathIO fp mb docxFile)
+ (\(fp, _, _) -> compareMediaPathIO fp mb docxFile)
(mediaDirectory mb)
return $ and bools
testMediaBagIO :: String -> FilePath -> IO Test
testMediaBagIO name docxFile = do
outcome <- compareMediaBagIO docxFile
- return $ testCase name (assertBool
+ return $ testCase name (assertBool
("Media didn't match media bag in file " ++ docxFile)
outcome)
@@ -176,7 +176,10 @@ tests = [ testGroup "inlines"
"code block"
"docx.codeblock.docx"
"docx.codeblock.native"
-
+ , testCompare
+ "dropcap paragraphs"
+ "docx.drop_cap.docx"
+ "docx.drop_cap.native"
]
, testGroup "track changes"
[ testCompare
@@ -229,4 +232,3 @@ tests = [ testGroup "inlines"
]
]
-