summaryrefslogtreecommitdiff
path: root/tests/Tests
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2014-06-25 11:09:28 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2014-06-25 11:09:28 -0400
commita2b6ab847cb1c997c6ae7b8ed36f543a7ed90ecd (patch)
treedc10cf694c7b04abb0c49da7b3e971ab2e7d8bfa /tests/Tests
parent9614ddfedc18cccbf9fbe1a23fae200c7e67d72d (diff)
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.
Diffstat (limited to 'tests/Tests')
-rw-r--r--tests/Tests/Readers/Docx.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Docx.hs b/tests/Tests/Readers/Docx.hs
index 4d062bbc0..f34e123ed 100644
--- a/tests/Tests/Readers/Docx.hs
+++ b/tests/Tests/Readers/Docx.hs
@@ -122,5 +122,15 @@ tests = [ testGroup "inlines"
"docx.codeblock.native"
]
+ , testGroup "track changes"
+ [ testCompare
+ "insert insertion (insertions only)"
+ "docx.track_changes_insertion.docx"
+ "docx.track_changes_insertion_only_ins.native"
+ , testCompare
+ "skip deletion (insertions only)"
+ "docx.track_changes_deletion.docx"
+ "docx.track_changes_deletion_only_ins.native"
+ ]
]