def test_lens_construct_composed(): obj = object() assert lens.Just().Iso(int, str).construct(obj) == maybe.Just(str(obj))
def test_lens_construct(): obj = object() assert lens.Just().construct(obj) == maybe.Just(obj)