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