summaryrefslogtreecommitdiff
path: root/test/Tests
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-02-16 12:53:41 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-02-16 12:53:41 +0300
commit0e4b8ae36296030569627baa537b9d71af621d20 (patch)
tree8f4ebc13de0b3143c0889512d424627098e591ec /test/Tests
parente6ff7f79861d3088f8cba2b22d86d9f75db73f6a (diff)
Muse reader: prioritize lists with roman numerals over alphabetical lists
This is to make sure "i." starts a roman numbered list, instead of a list with letter "i" (followed by "j", "k", ...").
Diffstat (limited to 'test/Tests')
-rw-r--r--test/Tests/Readers/Muse.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs
index faa21513a..2a350d252 100644
--- a/test/Tests/Readers/Muse.hs
+++ b/test/Tests/Readers/Muse.hs
@@ -767,6 +767,18 @@ tests =
, para "Item2"
, para "Item3"
]
+ , "Ordered list with roman numerals" =:
+ T.unlines
+ [ " i. First"
+ , " ii. Second"
+ , " iii. Third"
+ , " iv. Fourth"
+ ] =?>
+ orderedListWith (1, LowerRoman, Period) [ para "First"
+ , para "Second"
+ , para "Third"
+ , para "Fourth"
+ ]
, "Bullet list with empty items" =:
T.unlines
[ " -"