Docx reader: Add tests for basic track changes
This is what seems like the sensible default: read in insertions, and
ignore deletions. In the future, it would be good if options were
available for either taking in deletions or keeping both in some
scriptable format.
commita2b6ab847cb1c997c6ae7b8ed36f543a7ed90ecd
authorJesse Rosenthal <jrosenthal@jhu.edu>
dateWed 25 Jun 2014, 11:09 (12 years ago)
parent9614ddf
tests/Tests/Readers/Docx.hs+10
@@ -122,5 +122,15 @@ tests = [ testGroup "inlines"
122122 "docx.codeblock.native"
123123
124124 ]
125+ , testGroup "track changes"
126+ [ testCompare
127+ "insert insertion (insertions only)"
128+ "docx.track_changes_insertion.docx"
129+ "docx.track_changes_insertion_only_ins.native"
130+ , testCompare
131+ "skip deletion (insertions only)"
132+ "docx.track_changes_deletion.docx"
133+ "docx.track_changes_deletion_only_ins.native"
134+ ]
125135 ]
126136
tests/docx.track_changes_deletion.docxnew file
Binary file not shown.
tests/docx.track_changes_deletion_only_ins.nativenew file+1
@@ -0,0 +1 @@
1+[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "text",Space,Str "with",Space,Str "a",Space,Str "deletion."]]
tests/docx.track_changes_insertion.docxnew file
Binary file not shown.
tests/docx.track_changes_insertion_only_ins.nativenew file+1
@@ -0,0 +1 @@
1+[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "text",Space,Str "with",Space,Str "two",Space,Str "exciting",Space,Str "insertions."]]