Add normalization test.
Add torture-test for new normalization functions.
One problem that this test demonstrates is that word has a tendency to
turn off formatting at a space, and then turn it back on after. I'm not
sure yet whether this is something we should fix.
commitca4add679ce6dd438cc3f6d58f82d04a9ad6305e
authorJesse Rosenthal <jrosenthal@jhu.edu>
dateSat 21 Jun 2014, 17:58 (12 years ago)
parent9c7e0dc
tests/Tests/Readers/Docx.hs+4
@@ -74,6 +74,10 @@ tests = [ testGroup "inlines"
7474 "literal tabs"
7575 "docx.tabs.docx"
7676 "docx.tabs.native"
77+ , testCompare
78+ "normalizing inlines"
79+ "docx.normalize.docx"
80+ "docx.normalize.native"
7781 ]
7882 , testGroup "blocks"
7983 [ testCompare
tests/docx.normalize.docxnew file
Binary file not shown.
tests/docx.normalize.nativenew file+2
@@ -0,0 +1,2 @@
1+[Para [Str "These",Space,Str "are",Space,Str "different",Space,Str "fonts."]
2+,Para [Strong [Str "These",Space,Emph [Str "are"]],Space,Strong [Emph [Strikeout [Str "different"]],Space,Str "fonts."]]]