예제 #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))