Exemplo n.º 1
0
def test_count_length_of_astral_point_symbols_correctly():
    string = u'\U0001f63b'
    assert_equals(1, count_symbols(string))
Exemplo n.º 2
0
def test_count_length_of_ascii_symbols_correctly():
    string = u'hello'
    assert_equals(5, count_symbols(string))
Exemplo n.º 3
0
def test_count_length_of_latin_symbols_correctly():
    string = u'Scénario'
    assert_equals(8, count_symbols(string))
Exemplo n.º 4
0
def _pickle_step_location(step):
    return {
        'line': step['location']['line'],
        'column': step['location']['column'] + count_symbols(step.get('keyword', 0))
    }
Exemplo n.º 5
0
def test_count_length_of_astral_point_symbols_correctly():
    string = u'\U0001f63b'
    assert 1 == count_symbols(string)
Exemplo n.º 6
0
def test_count_length_of_latin_symbols_correctly():
    string = u'Scénario'
    assert 8, count_symbols(string)
Exemplo n.º 7
0
def test_count_length_of_ascii_symbols_correctly():
    string = u'hello'
    assert 5 == count_symbols(string)