Exemplo n.º 1
0
def test_composition_of_fold_and_setter_is_invalid():
    with pytest.raises(RuntimeError):
        b.IterableFold() & b.ForkedSetter()
Exemplo n.º 2
0
def test_cannot_set_with_fold():
    with pytest.raises(TypeError):
        b.IterableFold().set([1, 2, 3], 4)
Exemplo n.º 3
0
def test_cannot_re_with_fold():
    with pytest.raises(TypeError):
        b.IterableFold().re()
Exemplo n.º 4
0
def test_cannot_over_with_fold():
    with pytest.raises(TypeError):
        b.IterableFold().over([1, 2, 3], lambda a: a + 1)