Muse reader: add ordered list test

This commit is contained in:
Alexander Krotov 2017-11-22 18:48:45 +03:00
parent 454062eccd
commit 0b63ac2db1

View file

@ -537,23 +537,35 @@ tests =
]
, testGroup "Lists"
[ "Bullet list" =:
T.unlines
T.unlines
[ " - Item1"
, ""
, " - Item2"
] =?>
bulletList [ para "Item1"
, para "Item2"
]
bulletList [ para "Item1"
, para "Item2"
]
, "Ordered list" =:
T.unlines
[ " 1. Item1"
, ""
, " 2. Item2"
] =?>
orderedListWith (1, Decimal, Period) [ para "Item1"
, para "Item2"
]
T.unlines
[ " 1. Item1"
, ""
, " 2. Item2"
] =?>
orderedListWith (1, Decimal, Period) [ para "Item1"
, para "Item2"
]
, "Ordered list with implicit numbers" =:
T.unlines
[ " 1. Item1"
, ""
, " 1. Item2"
, ""
, " 1. Item3"
] =?>
orderedListWith (1, Decimal, Period) [ para "Item1"
, para "Item2"
, para "Item3"
]
, testGroup "Nested lists"
[ "Nested list" =:
T.unlines