added test for ol start check

This commit is contained in:
AlexVonB
2024-06-23 14:30:07 +02:00
parent 51390d7389
commit 0a5c89aa49

View File

@@ -43,6 +43,9 @@ nested_ols = """
def test_ol(): def test_ol():
assert md('<ol><li>a</li><li>b</li></ol>') == '1. a\n2. b\n' 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="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(): def test_nested_ols():