Ejemplo n.º 1
0
 def before(x, y):
     return identity(x) + identity(y)
Ejemplo n.º 2
0
def test_identity_function(x):
    return identity(x)
Ejemplo n.º 3
0
def test_prim_identity():
    for x in (1, 1.7, True, False, [1, 2, 3], (4, 5)):
        assert identity(x) is x
        assert return_(x) is x