def test_compose_lens_and_setter_kind(): assert (lens[0] & lens.Fork(lens, lens)) == "Setter"
def test_compose_fold_and_setter_kind_errors(): with pytest.raises(RuntimeError): lens.Iter() & lens.Fork(lens, lens)
def test_compose_iso_and_setter_kind(): assert (lens & lens.Fork(lens, lens)) == "Setter"