Skip to content

Commit

Permalink
added test for ol start check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVonB committed Jun 23, 2024
1 parent 51390d7 commit 0a5c89a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
def test_ol():
assert md('<ol><li>a</li><li>b</li></ol>') == '1. a\n2. b\n'
assert md('<ol start="3"><li>a</li><li>b</li></ol>') == '3. a\n4. b\n'
assert md('<ol start="-1"><li>a</li><li>b</li></ol>') == '1. a\n2. b\n'
assert md('<ol start="foo"><li>a</li><li>b</li></ol>') == '1. a\n2. b\n'
assert md('<ol start="1.5"><li>a</li><li>b</li></ol>') == '1. a\n2. b\n'


def test_nested_ols():
Expand Down

0 comments on commit 0a5c89a

Please sign in to comment.