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