コード例 #1
0
ファイル: test_lens.py プロジェクト: cage433/python-lenses
def test_lens_construct_composed():
    obj = object()
    assert lens.Just().Iso(int, str).construct(obj) == maybe.Just(str(obj))
コード例 #2
0
ファイル: test_lens.py プロジェクト: cage433/python-lenses
def test_lens_construct():
    obj = object()
    assert lens.Just().construct(obj) == maybe.Just(obj)