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