File size: 336 Bytes
46bdae9 456f698 46bdae9 2fc8513 46bdae9 456f698 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import pytest
from utils import utils
@pytest.mark.parametrize(
"text, expected",
[
("举棋不定", "jǔ qí bù dìng"),
("风", "fēng"),
("不怕慢,就怕站", "bù pà màn , jiù pà zhàn"),
],
)
def test_get_pinyin_accent(text, expected):
assert utils.get_pinyin(text) == expected
|