Exemplo n.º 1
0
def test_take_while_eq_one_empty():
    got = list(indentlib._take_while_eq([], [1]))
    assert got == []
Exemplo n.º 2
0
def test_take_while_eq_prefix_diverging():
    got = list(indentlib._take_while_eq([1, 2, 4], [1, 2, 3]))
    assert got == [1, 2]
Exemplo n.º 3
0
def test_take_while_eq_prefix_same():
    got = list(indentlib._take_while_eq([1, 2, 3], [1, 2, 3]))
    assert got == [1, 2, 3]
Exemplo n.º 4
0
def test_take_while_eq_prefix_of_other():
    got = list(indentlib._take_while_eq([1, 2], [1, 2, 3]))
    assert got == [1, 2]