예제 #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)