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.
This commit is contained in:
parent
9614ddfedc
commit
a2b6ab847c
5 changed files with 12 additions and 0 deletions
|
@ -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"
|
||||
]
|
||||
]
|
||||
|
||||
|
|
BIN
tests/docx.track_changes_deletion.docx
Normal file
BIN
tests/docx.track_changes_deletion.docx
Normal file
Binary file not shown.
1
tests/docx.track_changes_deletion_only_ins.native
Normal file
1
tests/docx.track_changes_deletion_only_ins.native
Normal file
|
@ -0,0 +1 @@
|
|||
[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "text",Space,Str "with",Space,Str "a",Space,Str "deletion."]]
|
BIN
tests/docx.track_changes_insertion.docx
Normal file
BIN
tests/docx.track_changes_insertion.docx
Normal file
Binary file not shown.
1
tests/docx.track_changes_insertion_only_ins.native
Normal file
1
tests/docx.track_changes_insertion_only_ins.native
Normal file
|
@ -0,0 +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."]]
|
Loading…
Reference in a new issue