示例#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)