git.iko.soy/typeable/pandoc
on master help sign in
Docx writer tests: Add tests for custom styles
commitebcd04f57a4693447a47891c4cf3654e023d4f13 authorJesse Rosenthal <jrosenthal@jhu.edu> dateSat 27 Jan 2018, 11:46 (9 years ago) parenta66bfd9
4 files changed+10
test/Tests/Writers/Docx.hs+10 test/docx/custom-style-roundtrip-start.native → test/docx/custom_style.native test/docx/golden/custom_style_no_reference.docx test/docx/golden/custom_style_reference.docx
test/Tests/Writers/Docx.hs+10
@@ -144,4 +144,14 @@ tests = [ testGroup "inlines"
144144 "docx/comments.native"
145145 "docx/golden/comments.docx"
146146 ]
147+ , testGroup "custom styles"
148+ [ docxTest "custom styles without reference.docx"
149+ def
150+ "docx/custom_style.native"
151+ "docx/golden/custom_style_no_reference.docx"
152+ , docxTest "custom styles without reference.docx"
153+ def{writerReferenceDoc = Just "docx/custom-style-reference.docx"}
154+ "docx/custom_style.native"
155+ "docx/golden/custom_style_reference.docx"
156+ ]
147157 ]
test/docx/custom-style-roundtrip-start.native → test/docx/custom_style.nativerenamed

The content is the same.

test/docx/golden/custom_style_no_reference.docxnew file

Binary file not shown.

test/docx/golden/custom_style_reference.docxnew file

Binary file not shown.