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