diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2017-12-13 15:14:23 -0500 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2017-12-13 15:16:44 -0500 |
commit | 440533643e768b584194aaac59e26e35d53f6745 (patch) | |
tree | 099136be6a7488f35d7f4eba24d3b6541d5949db | |
parent | 3c7a3d378c6fdb026297aee10e4818267a8b86a8 (diff) | |
download | pandoc-440533643e768b584194aaac59e26e35d53f6745.tar.gz |
Docx writer: Add tests for list continuation.
-rw-r--r-- | test/Tests/Readers/Docx.hs | 8 | ||||
-rw-r--r-- | test/docx/lists_continuing.docx | bin | 0 -> 17717 bytes | |||
-rw-r--r-- | test/docx/lists_continuing.native | 7 | ||||
-rw-r--r-- | test/docx/lists_restarting.docx | bin | 0 -> 18189 bytes | |||
-rw-r--r-- | test/docx/lists_restarting.native | 8 |
5 files changed, 23 insertions, 0 deletions
diff --git a/test/Tests/Readers/Docx.hs b/test/Tests/Readers/Docx.hs index 421acaa8b..6d91c36ae 100644 --- a/test/Tests/Readers/Docx.hs +++ b/test/Tests/Readers/Docx.hs @@ -206,6 +206,14 @@ tests = [ testGroup "inlines" "docx/lists.docx" "docx/lists.native" , testCompare + "lists continuing after interruption" + "docx/lists_continuing.docx" + "docx/lists_continuing.native" + , testCompare + "lists restarting after interruption" + "docx/lists_restarting.docx" + "docx/lists_restarting.native" + , testCompare "definition lists" "docx/definition_list.docx" "docx/definition_list.native" diff --git a/test/docx/lists_continuing.docx b/test/docx/lists_continuing.docx Binary files differnew file mode 100644 index 000000000..e6249260b --- /dev/null +++ b/test/docx/lists_continuing.docx diff --git a/test/docx/lists_continuing.native b/test/docx/lists_continuing.native new file mode 100644 index 000000000..24d352ce5 --- /dev/null +++ b/test/docx/lists_continuing.native @@ -0,0 +1,7 @@ +[OrderedList (1,Decimal,Period) + [[Para [Str "Foo"]] + ,[Para [Str "Bar"]] + ,[Para [Str "Baz"]]] +,Para [Str "Interruption."] +,OrderedList (4,Decimal,Period) + [[Para [Str "Bop"]]]] diff --git a/test/docx/lists_restarting.docx b/test/docx/lists_restarting.docx Binary files differnew file mode 100644 index 000000000..4acd67fcb --- /dev/null +++ b/test/docx/lists_restarting.docx diff --git a/test/docx/lists_restarting.native b/test/docx/lists_restarting.native new file mode 100644 index 000000000..6602f1262 --- /dev/null +++ b/test/docx/lists_restarting.native @@ -0,0 +1,8 @@ +[OrderedList (2,Decimal,Period) + [[Para [Str "Foo"]] + ,[Para [Str "Bar"]] + ,[Para [Str "Baz"]]] +,BlockQuote + [Para [Str "Interruption"]] +,OrderedList (1,Decimal,Period) + [[Para [Str "Bop."]]]] |