Skip to content

Commit 0a5c89a

Browse files
committed
added test for ol start check
1 parent 51390d7 commit 0a5c89a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_lists.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
def test_ol():
4444
assert md('<ol><li>a</li><li>b</li></ol>') == '1. a\n2. b\n'
4545
assert md('<ol start="3"><li>a</li><li>b</li></ol>') == '3. a\n4. b\n'
46+
assert md('<ol start="-1"><li>a</li><li>b</li></ol>') == '1. a\n2. b\n'
47+
assert md('<ol start="foo"><li>a</li><li>b</li></ol>') == '1. a\n2. b\n'
48+
assert md('<ol start="1.5"><li>a</li><li>b</li></ol>') == '1. a\n2. b\n'
4649

4750

4851
def test_nested_ols():

0 commit comments

Comments
 (0)