git.iko.soy/typeable/pandoc
on master help sign in
Docx writer tests: Add tests for custom styles
ebcd04fJesse Rosenthal
test/Tests/Writers/Docx.hs+10
@@ -144,4 +144,14 @@ tests = [ testGroup "inlines"
144 "docx/comments.native"
144 "docx/comments.native"
145 "docx/golden/comments.docx"
145 "docx/golden/comments.docx"
146 ]
146 ]
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+ ]
147 ]
157 ]
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.