Ejemplo n.º 1
0
def test_nonsegment_lambda2_w_attr():
    p = Pipe() +\
        (lambda x: x+2) + \
        (lambda x: x + 2)

    assert p.testattr(5) == 9
Ejemplo n.º 2
0
def test_lambda1_w_attr():
    p = Pipe() +\
        Segment(lambda x: x+2)

    assert p.testattr(5) == 7