Muse reader: add ordered list test
This commit is contained in:
parent
454062eccd
commit
0b63ac2db1
1 changed files with 24 additions and 12 deletions
|
@ -537,23 +537,35 @@ tests =
|
||||||
]
|
]
|
||||||
, testGroup "Lists"
|
, testGroup "Lists"
|
||||||
[ "Bullet list" =:
|
[ "Bullet list" =:
|
||||||
T.unlines
|
T.unlines
|
||||||
[ " - Item1"
|
[ " - Item1"
|
||||||
, ""
|
, ""
|
||||||
, " - Item2"
|
, " - Item2"
|
||||||
] =?>
|
] =?>
|
||||||
bulletList [ para "Item1"
|
bulletList [ para "Item1"
|
||||||
, para "Item2"
|
, para "Item2"
|
||||||
]
|
]
|
||||||
, "Ordered list" =:
|
, "Ordered list" =:
|
||||||
T.unlines
|
T.unlines
|
||||||
[ " 1. Item1"
|
[ " 1. Item1"
|
||||||
, ""
|
, ""
|
||||||
, " 2. Item2"
|
, " 2. Item2"
|
||||||
] =?>
|
] =?>
|
||||||
orderedListWith (1, Decimal, Period) [ para "Item1"
|
orderedListWith (1, Decimal, Period) [ para "Item1"
|
||||||
, para "Item2"
|
, 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"
|
, testGroup "Nested lists"
|
||||||
[ "Nested list" =:
|
[ "Nested list" =:
|
||||||
T.unlines
|
T.unlines
|
||||||
|
|
Loading…
Add table
Reference in a new issue