Lists test
This commit is contained in:
parent
ae07d5ed49
commit
a82dedf1ff
2 changed files with 21 additions and 4 deletions
|
@ -83,10 +83,10 @@ tests = [ testGroup "inlines"
|
|||
, testCompare
|
||||
"i18n blocks (headers and blockquotes)"
|
||||
"docx/i18n_blocks.native"
|
||||
-- some level problems, look into that
|
||||
-- , testCompare
|
||||
-- "lists"
|
||||
-- "docx/lists.native"
|
||||
-- Continuation does not survive round-trip
|
||||
, testCompare
|
||||
"lists"
|
||||
"docx/lists_writer.native"
|
||||
, testCompare
|
||||
"definition lists"
|
||||
"docx/definition_list.native"
|
||||
|
|
17
tests/docx/lists_writer.native
Normal file
17
tests/docx/lists_writer.native
Normal file
|
@ -0,0 +1,17 @@
|
|||
[Header 2 ("some-nested-lists",[],[]) [Str "Some",Space,Str "nested",Space,Str "lists"]
|
||||
,OrderedList (1,Decimal,Period)
|
||||
[[Para [Str "one"]]
|
||||
,[Para [Str "two"]
|
||||
,OrderedList (1,LowerAlpha,DefaultDelim)
|
||||
[[Para [Str "a"]]
|
||||
,[Para [Str "b"]]]]]
|
||||
,BulletList
|
||||
[[Para [Str "one"]]
|
||||
,[Para [Str "two"]
|
||||
,BulletList
|
||||
[[Para [Str "three"]
|
||||
,BulletList
|
||||
[[Para [Str "four"]]]]]]
|
||||
,[Para [Str "Same",Space,Str "list"]]]
|
||||
,BulletList
|
||||
[[Para [Str "Different",Space,Str "list",Space,Str "adjacent",Space,Str "to",Space,Str "the",Space,Str "one",Space,Str "above."]]]]
|
Loading…
Add table
Reference in a new issue