Docx reader: Add test
Test auto ident header anchors with pandoc-generated pandoc.
This commit is contained in:
parent
5883899625
commit
643435f1de
4 changed files with 8 additions and 0 deletions
|
@ -188,6 +188,8 @@ Extra-Source-Files:
|
|||
tests/fb2.math.fb2,
|
||||
tests/fb2.test-small.png,
|
||||
tests/fb2.test.jpg,
|
||||
tests/docx.already_auto_ident.native,
|
||||
tests/docx.already_auto_ident.docx,
|
||||
tests/docx.block_quotes.docx,
|
||||
tests/docx.block_quotes_parse_indent.native,
|
||||
tests/docx.headers.docx,
|
||||
|
|
|
@ -96,6 +96,10 @@ tests = [ testGroup "inlines"
|
|||
"headers"
|
||||
"docx.headers.docx"
|
||||
"docx.headers.native"
|
||||
, testCompare
|
||||
"headers already having auto identifiers"
|
||||
"docx.already_auto_ident.docx"
|
||||
"docx.already_auto_ident.native"
|
||||
, testCompare
|
||||
"lists"
|
||||
"docx.lists.docx"
|
||||
|
|
BIN
tests/docx.already_auto_ident.docx
Normal file
BIN
tests/docx.already_auto_ident.docx
Normal file
Binary file not shown.
2
tests/docx.already_auto_ident.native
Normal file
2
tests/docx.already_auto_ident.native
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Header 1 ("anchor-header",[],[]) [Str "Anchor",Space,Str "Header"]
|
||||
,Para [Str "A",Space,Link [Str "link"] ("#anchor-header","")]]
|
Loading…
Add table
Reference in a new issue