Пример #1
0
def test_lens_construct_composed():
    obj = object()
    assert lens.Just().Iso(int, str).construct(obj) == maybe.Just(str(obj))
Пример #2
0
def test_lens_construct():
    obj = object()
    assert lens.Just().construct(obj) == maybe.Just(obj)