summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2014-06-19 19:33:22 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2014-06-19 19:33:22 -0400
commitda0d1d27ac98ca28e66bc2df3de2bce738068fb8 (patch)
treec623f7769c57f7c4ba7738aba995a99b444dfa91 /tests
parentd19996d7438fbd2ce56cf3ce46b99cd71437cacb (diff)
Add tabs tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/Tests/Readers/Docx.hs7
-rw-r--r--tests/docx.tabs.docxbin0 -> 12919 bytes
-rw-r--r--tests/docx.tabs.native2
3 files changed, 8 insertions, 1 deletions
diff --git a/tests/Tests/Readers/Docx.hs b/tests/Tests/Readers/Docx.hs
index 273f03f4d..3a13641a9 100644
--- a/tests/Tests/Readers/Docx.hs
+++ b/tests/Tests/Readers/Docx.hs
@@ -44,7 +44,12 @@ tests = [ testGroup "inlines"
, testCompare
"handling unicode input"
"docx.unicode.docx"
- "docx.unicode.native"]
+ "docx.unicode.native"
+ , testCompare
+ "literal tabs"
+ "docx.tabs.docx"
+ "docx.tabs.native"
+ ]
, testGroup "blocks"
[ testCompare
"headers"
diff --git a/tests/docx.tabs.docx b/tests/docx.tabs.docx
new file mode 100644
index 000000000..6ff5f4bb1
--- /dev/null
+++ b/tests/docx.tabs.docx
Binary files differ
diff --git a/tests/docx.tabs.native b/tests/docx.tabs.native
new file mode 100644
index 000000000..05461f20b
--- /dev/null
+++ b/tests/docx.tabs.native
@@ -0,0 +1,2 @@
+[Para [Str "Some",Space,Str "text",Space,Str "separated",Space,Str "by",Space,Str "a",Space,Str "tab."]
+,Para [Str "Tab-indented",Space,Str "text."]]