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