Exemple #1
0
def test_split_not_found():
    with pytest.raises(ValueError):
        split_using(lambda v: v > 5, [3])
Exemple #2
0
def test_split_using(input, top, tail):
    assert split_using(lambda v: v > 5, input) == (top, tail)