Exemplo n.º 1
0
def test_eof():
    eq_(compute_location(SOURCE, 27), (5, 1))
Exemplo n.º 2
0
def test_third_line_end():
    eq_(compute_location(SOURCE, 18), (3, 6))
Exemplo n.º 3
0
def test_fourth_line_end():
    eq_(compute_location(SOURCE, 25), (4, 6))
Exemplo n.º 4
0
def test_second_line():
    eq_(compute_location(SOURCE, 12), (2, 1))
Exemplo n.º 5
0
def test_third_line():
    eq_(compute_location(SOURCE, 13), (3, 1))
Exemplo n.º 6
0
def test_one():
    eq_(compute_location(SOURCE, 2), (1, 3))
Exemplo n.º 7
0
def test_one():
    eq_(compute_location(SOURCE, 2), (1, 3))
Exemplo n.º 8
0
def test_empty():
    eq_(compute_location('', 0), (1, 1))
Exemplo n.º 9
0
def test_list():
    eq_(compute_location([1, 2, 3, 4, 5], 3), (1, 3))
Exemplo n.º 10
0
def test_fourth_line_end():
    eq_(compute_location(SOURCE, 25), (4, 6))
Exemplo n.º 11
0
def test_eof():
    eq_(compute_location(SOURCE, 27), (5, 1))
Exemplo n.º 12
0
def test_third_line_end():
    eq_(compute_location(SOURCE, 18), (3, 6))
Exemplo n.º 13
0
def test_third_line():
    eq_(compute_location(SOURCE, 13), (3, 1))
Exemplo n.º 14
0
def test_second_line():
    eq_(compute_location(SOURCE, 12), (2, 1))
Exemplo n.º 15
0
def test_empty():
    eq_(compute_location('', 0), (1, 1))
Exemplo n.º 16
0
def test_zero():
    eq_(compute_location(SOURCE, 0), (1, 1))
Exemplo n.º 17
0
def test_list():
    eq_(compute_location([1, 2, 3, 4, 5], 3), (1, 3))
Exemplo n.º 18
0
def test_zero():
    eq_(compute_location(SOURCE, 0), (1, 1))