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