git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: Add tests for paragraph insertion/deletion.
commita5b71a3c7f177248e0058b8287358f5fca8517b1 authorJesse Rosenthal <jrosenthal@jhu.edu> dateTue 2 Jan 2018, 11:24 (9 years ago) parent2e90e29
5 files changed+19
test/Tests/Readers/Docx.hs+12 test/docx/paragraph_insertion_deletion.docx test/docx/paragraph_insertion_deletion_accept.native+2 test/docx/paragraph_insertion_deletion_all.native+3 test/docx/paragraph_insertion_deletion_reject.native+2
test/Tests/Readers/Docx.hs+12
@@ -335,6 +335,18 @@ tests = [ testGroup "inlines"
335335 "comments (all comments)"
336336 "docx/comments.docx"
337337 "docx/comments.native"
338+ , testCompareWithOpts def{readerTrackChanges=AcceptChanges}
339+ "paragraph insertion/deletion (accept)"
340+ "docx/paragraph_insertion_deletion.docx"
341+ "docx/paragraph_insertion_deletion_accept.native"
342+ , testCompareWithOpts def{readerTrackChanges=RejectChanges}
343+ "paragraph insertion/deletion (reject)"
344+ "docx/paragraph_insertion_deletion.docx"
345+ "docx/paragraph_insertion_deletion_reject.native"
346+ , testCompareWithOpts def{readerTrackChanges=AllChanges}
347+ "paragraph insertion/deletion (all)"
348+ "docx/paragraph_insertion_deletion.docx"
349+ "docx/paragraph_insertion_deletion_all.native"
338350 , testForWarningsWithOpts def{readerTrackChanges=AcceptChanges}
339351 "comment warnings (accept -- no warnings)"
340352 "docx/comments_warning.docx"
test/docx/paragraph_insertion_deletion.docxnew file

Binary file not shown.

test/docx/paragraph_insertion_deletion_accept.nativenew file+2
@@ -0,0 +1,2 @@
1+[Para [Str "This",Space,Str "is",Space,Str "a"]
2+,Para [Str "split",Space,Str "Paragraph."]]
test/docx/paragraph_insertion_deletion_all.nativenew file+3
@@ -0,0 +1,3 @@
1+[Para [Str "This",Space,Str "is",Space,Str "a",Span ("",["paragraph-insertion"],[("author","Seeley, Jason"),("date","2017-09-17T16:39:00Z")]) []]
2+,Para [Str "split",Span ("",["paragraph-deletion"],[("author","Seeley, Jason"),("date","2017-09-17T16:39:00Z")]) []]
3+,Para [Str "Paragraph."]]
test/docx/paragraph_insertion_deletion_reject.nativenew file+2
@@ -0,0 +1,2 @@
1+[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "split"]
2+,Para [Str "Paragraph."]]