Files
akaza/skkdictutils/test_skkdict.py
Tokuhiro Matsuno 3ee8b9574f snapshot
2020-09-14 18:36:22 +09:00

22 lines
605 B
Python

from skkdictutils import merge_skkdict, expand_okuri
def test_merge_skkdict():
got = merge_skkdict([
{'': ['', '']},
{'': ['', ''], '': ['']},
])
print(got)
assert got == {'': ['', '', ''], '': ['']}
def test_expand_okuri():
got = list(expand_okuri('あいしあw', ['愛し合']))
print(got)
assert got == [
('あいしあわ', ['愛し合わ']),
('あいしあうぃ', ['愛し合うぃ']),
('あいしあうぇ', ['愛し合うぇ']),
('あいしあを', ['愛し合を']),
]