예제 #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]田"