Exemple #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))]
Exemple #2
0
def test_random_charmap(a, b):
    tokenizations.get_charmap(a, b)
Exemple #3
0
def test_equality_charmap(a):
    a2b, b2a = tokenizations.get_charmap(a, a)
    assert a2b == b2a
    assert a2b == list(range(len(a)))
Exemple #4
0
def test_get_charmap(input_, expected):
    assert tokenizations.get_charmap(*input_) == expected
Exemple #5
0
def test_get_charmap(input_, expected):
    output = tokenizations.get_charmap(*input_)