def test_get_comp6(): # PAY ATTENTION to this test case. # 因为这种输入是不正常的,所以应该被当做普通字符串处理 s = "⿱⿳亠" lst = [] get_comp(comp_rawdict, s, lst) res = "".join(lst) assert res == "⿱⿳亠"
def test_get_comp4(): # 这里由于是纯字符串,直接返回 s = "亠田" lst = [] get_comp(comp_rawdict, s, lst) res = "".join(lst) # assert res == "⿱丶一[GTK]田" assert res == "亠田"
def test_get_comp7(): s = "⿱⿳" lst = [] get_comp(comp_rawdict, s, lst) res = "".join(lst) assert res == "⿱⿳"
def test_get_comp3(): s = "⿳⿳亠口冖⿻二丨九[T]" lst = [] get_comp(comp_rawdict, s, lst) res = "".join(lst) assert res == "⿳⿳⿱丶一[GTK]口冖⿻⿱一一丨九[T]"
def test_get_comp2(): s = "⿱⿳亠口冖儿[TJK]" lst = [] get_comp(comp_rawdict, s, lst) res = "".join(lst) assert res == "⿱⿳⿱丶一[GTK]口冖⿰丿乚[TJK]"
def test_get_comp1(): s = "⿱亠田" lst = [] get_comp(comp_rawdict, s, lst) res = "".join(lst) assert res == "⿱⿱丶一[GTK]田"