diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2014-09-05 22:07:06 -0400 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2014-09-05 22:07:06 -0400 |
commit | f56e0e958a1f2d1332bdb350205ee38afcaf4a1c (patch) | |
tree | 5005f77c01925f537fb66ab0eed11550dbe60667 | |
parent | 71452946d9f4d76a993c6a0ff5d51c416487bcf3 (diff) | |
download | pandoc-f56e0e958a1f2d1332bdb350205ee38afcaf4a1c.tar.gz |
Docx reader: Add test for polyglot headers.
Only Danish at the moment.
-rw-r--r-- | tests/Tests/Readers/Docx.hs | 4 | ||||
-rw-r--r-- | tests/docx/danish_headers.docx | bin | 0 -> 17691 bytes | |||
-rw-r--r-- | tests/docx/danish_headers.native | 10 |
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Docx.hs b/tests/Tests/Readers/Docx.hs index 83f572131..565d117e9 100644 --- a/tests/Tests/Readers/Docx.hs +++ b/tests/Tests/Readers/Docx.hs @@ -157,6 +157,10 @@ tests = [ testGroup "inlines" "docx/numbered_header.docx" "docx/numbered_header.native" , testCompare + "headers in other languages" + "docx/danish_headers.docx" + "docx/danish_headers.native" + , testCompare "lists" "docx/lists.docx" "docx/lists.native" diff --git a/tests/docx/danish_headers.docx b/tests/docx/danish_headers.docx Binary files differnew file mode 100644 index 000000000..345fc632c --- /dev/null +++ b/tests/docx/danish_headers.docx diff --git a/tests/docx/danish_headers.native b/tests/docx/danish_headers.native new file mode 100644 index 000000000..12a857811 --- /dev/null +++ b/tests/docx/danish_headers.native @@ -0,0 +1,10 @@ +[Header 1 ("testoverskrift",[],[]) [Str "Testoverskrift"] +,Para [Str "Normal"] +,Header 2 ("testoverskrift-2",[],[]) [Str "Testoverskrift",Space,Str "2"] +,Table [] [AlignDefault,AlignDefault] [0.0,0.0] + [[Plain [Str "Kolonne1"]] + ,[Plain [Str "Kolonne2"]]] + [[[Plain [Str "Testdata",Space,Str "1"]] + ,[Plain [Str "Tester2"]]] + ,[[Plain [Str "Testdata",Space,Str "2"]] + ,[Plain [Str "Tester3"]]]]] |