2Tests for `chives.text`.
7from chives.text import smartify
10@pytest.mark.parametrize(
13 ("Isn't it delightful -- she said", "Isn’t it delightful – she said"),
14 ("Are you ... sure?", "Are you … sure?"),
15 ("<h2>Isn't it delightful?</h2>", "<h2>Isn’t it delightful?</h2>"),
16 ("<li>Isn't it delightful?</li>", "<li>Isn’t it delightful?</li>"),
17 ("<p>"It's nice", he said</p>", "<p>“It’s nice”, he said</p>"),
20def test_smartify(text: str, expected: str) -> None:
24 actual = smartify(text)
25 assert actual == expected