예제 #1
0
def test_equality_charmap(a):
    a2b, b2a = tokenizations.get_charmap(a, a)
    assert a2b == b2a
    assert a2b == [[x] for x in range(len(a))]
예제 #2
0
def test_random_charmap(a, b):
    tokenizations.get_charmap(a, b)
예제 #3
0
def test_equality_charmap(a):
    a2b, b2a = tokenizations.get_charmap(a, a)
    assert a2b == b2a
    assert a2b == list(range(len(a)))
예제 #4
0
def test_get_charmap(input_, expected):
    assert tokenizations.get_charmap(*input_) == expected
예제 #5
0
def test_get_charmap(input_, expected):
    output = tokenizations.get_charmap(*input_)