diff options
-rw-r--r-- | test/Tests/Readers/FB2.hs | 1 | ||||
-rw-r--r-- | test/fb2/reader/notes.fb2 | 19 | ||||
-rw-r--r-- | test/fb2/reader/notes.native | 4 |
3 files changed, 24 insertions, 0 deletions
diff --git a/test/Tests/Readers/FB2.hs b/test/Tests/Readers/FB2.hs index 71443176d..e64e8a2ce 100644 --- a/test/Tests/Readers/FB2.hs +++ b/test/Tests/Readers/FB2.hs @@ -36,4 +36,5 @@ tests = [ fb2Test "Emphasis" "fb2/reader/emphasis.fb2" , fb2Test "Epigraph" "fb2/reader/epigraph.fb2" , fb2Test "Poem" "fb2/reader/poem.fb2" , fb2Test "Meta" "fb2/reader/meta.fb2" + , fb2Test "Notes" "fb2/reader/notes.fb2" ] diff --git a/test/fb2/reader/notes.fb2 b/test/fb2/reader/notes.fb2 new file mode 100644 index 000000000..263256933 --- /dev/null +++ b/test/fb2/reader/notes.fb2 @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0" xmlns:l="http://www.w3.org/1999/xlink"> + <body> + <section> + <p>Note <a l:href="#n1" type="note">1</a>.</p> + <p>Second note <a l:href="#n2" type="note">2</a>.</p> + </section> + </body> + <body name="notes"> + <section id="n1"> + <title><p>1</p></title> + <p>Note contents</p> + </section> + <section id="n2"> + <title><p>2</p></title> + <p>Second note contents.</p> + </section> + </body> +</FictionBook> diff --git a/test/fb2/reader/notes.native b/test/fb2/reader/notes.native new file mode 100644 index 000000000..f229209cd --- /dev/null +++ b/test/fb2/reader/notes.native @@ -0,0 +1,4 @@ +Pandoc (Meta {unMeta = fromList []}) +[Div ("",["section"],[]) + [Para [Str "Note",Space,Note [Para [Str "Note",Space,Str "contents"]],Str "."] + ,Para [Str "Second",Space,Str "note",Space,Note [Para [Str "Second",Space,Str "note",Space,Str "contents."]],Str "."]]] |