aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2016-03-16 12:56:17 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2016-03-16 12:56:17 -0400
commit7f4a40474c77a72cb66b9f583d241c1f21ef695f (patch)
tree11cd95827e7e1150acea6d64b66345e2d0be7221 /tests
parent855c8b43f0497125f8d24b113ce0df92ed7d074b (diff)
downloadpandoc-7f4a40474c77a72cb66b9f583d241c1f21ef695f.tar.gz
Docx reader: Add test for enumerated headers.
We don't want them to turn into a list.
Diffstat (limited to 'tests')
-rw-r--r--tests/Tests/Readers/Docx.hs6
-rw-r--r--tests/docx/enumerated_headings.docxbin0 -> 12539 bytes
-rw-r--r--tests/docx/enumerated_headings.native4
3 files changed, 9 insertions, 1 deletions
diff --git a/tests/Tests/Readers/Docx.hs b/tests/Tests/Readers/Docx.hs
index 9284d165a..e09d56529 100644
--- a/tests/Tests/Readers/Docx.hs
+++ b/tests/Tests/Readers/Docx.hs
@@ -169,10 +169,14 @@ tests = [ testGroup "inlines"
"docx/already_auto_ident.docx"
"docx/already_auto_ident.native"
, testCompare
- "numbered headers automatically made into list"
+ "single numbered item not made into list"
"docx/numbered_header.docx"
"docx/numbered_header.native"
, testCompare
+ "enumerated headers not made into numbered list"
+ "docx/enumerated_headings.docx"
+ "docx/enumerated_headings.native"
+ , testCompare
"i18n blocks (headers and blockquotes)"
"docx/i18n_blocks.docx"
"docx/i18n_blocks.native"
diff --git a/tests/docx/enumerated_headings.docx b/tests/docx/enumerated_headings.docx
new file mode 100644
index 000000000..afa84748a
--- /dev/null
+++ b/tests/docx/enumerated_headings.docx
Binary files differ
diff --git a/tests/docx/enumerated_headings.native b/tests/docx/enumerated_headings.native
new file mode 100644
index 000000000..67c0df5e0
--- /dev/null
+++ b/tests/docx/enumerated_headings.native
@@ -0,0 +1,4 @@
+[Header 1 ("h1",[],[]) [Str "H1"]
+,Header 2 ("h2",[],[]) [Str "H2"]
+,Header 3 ("h3",[],[]) [Str "H3"]
+,Para [Str "And",Space,Str "some",Space,Str "text"]]