Lists test

This commit is contained in:
Nikolay Yakimov 2015-03-08 03:59:48 +03:00
parent ae07d5ed49
commit a82dedf1ff
2 changed files with 21 additions and 4 deletions

View file

@ -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"

View 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."]]]]