Spaces:
Build error
Build error
File size: 451 Bytes
e50699c 5dff3c8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
"""Test text2lists."""
from pathlib import Path
from radiobee.loadtext import loadtext
from radiobee.text2lists import text2lists
def test_text2lists_bug2():
"""Test text2lists data\问题2测试文件.txt."""
filename = r"data\问题2测试文件.txt"
text = loadtext(filename) # noqa
l1, l2 = text2lists(text)
# assert l2[0] in [""]
# assert "国际\n中\n双语" in l1[0]
assert len(l1) == 4
assert len(l2) == 5
|