def test_compose_lens_and_fold_kind(): assert (lens[0] & lens.Iter()).kind() == "Fold"
def test_compose_fold_and_setter_kind_errors(): with pytest.raises(RuntimeError): lens.Iter() & lens.Fork(lens, lens)
def test_compose_iso_and_fold_kind(): assert (lens & lens.Iter()).kind() == "Fold"