git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: Add test

Test auto ident header anchors with pandoc-generated pandoc.

commit643435f1deb7db4d6795e0c9ac60f5daf1c8268f authorJesse Rosenthal <jrosenthal@jhu.edu> dateTue 15 Jul 2014, 10:25 (12 years ago) parent5883899
4 files changed+8
pandoc.cabal+2 tests/Tests/Readers/Docx.hs+4 tests/docx.already_auto_ident.docx tests/docx.already_auto_ident.native+2
pandoc.cabal+2
@@ -188,6 +188,8 @@ Extra-Source-Files:
188188 tests/fb2.math.fb2,
189189 tests/fb2.test-small.png,
190190 tests/fb2.test.jpg,
191+ tests/docx.already_auto_ident.native,
192+ tests/docx.already_auto_ident.docx,
191193 tests/docx.block_quotes.docx,
192194 tests/docx.block_quotes_parse_indent.native,
193195 tests/docx.headers.docx,
tests/Tests/Readers/Docx.hs+4
@@ -96,6 +96,10 @@ tests = [ testGroup "inlines"
9696 "headers"
9797 "docx.headers.docx"
9898 "docx.headers.native"
99+ , testCompare
100+ "headers already having auto identifiers"
101+ "docx.already_auto_ident.docx"
102+ "docx.already_auto_ident.native"
99103 , testCompare
100104 "lists"
101105 "docx.lists.docx"
tests/docx.already_auto_ident.docxnew file

Binary file not shown.

tests/docx.already_auto_ident.nativenew file+2
@@ -0,0 +1,2 @@
1+[Header 1 ("anchor-header",[],[]) [Str "Anchor",Space,Str "Header"]
2+,Para [Str "A",Space,Link [Str "link"] ("#anchor-header","")]]