def _func(a,b,c):
return a+b+c
+@cython.test_fail_if_path_exists("//BinopNode")
def add():
"""
>>> add() == 1+2+3+4
"""
return 1+2+3+4
+@cython.test_fail_if_path_exists("//BinopNode")
def add_var(a):
"""
>>> add_var(10) == 1+2+10+3+4
"""
return 1+2 +a+ 3+4
+@cython.test_fail_if_path_exists("//BinopNode")
def neg():
"""
>>> neg() == -1 -2 - (-3+4)
"""
return -1 -2 - (-3+4)
+@cython.test_fail_if_path_exists("//BinopNode")
def long_int_mix():
"""
>>> long_int_mix() == 1 + (2 * 3) // 2
"""
return 1L + (2 * 3L) // 2
+@cython.test_fail_if_path_exists("//BinopNode")
def char_int_mix():
"""
>>> char_int_mix() == 1 + (ord(' ') * 3) // 2 + ord('A')
"""
return 1L + (c' ' * 3L) // 2 + c'A'
+@cython.test_fail_if_path_exists("//BinopNode")
def int_cast():
"""
>>> int_cast() == 1 + 2 * 6000
"""
return <int>(1 + 2 * 6000)
+@cython.test_fail_if_path_exists("//BinopNode")
def mul():
"""
>>> mul() == 1*60*1000
"""
return 1*60*1000
+@cython.test_fail_if_path_exists("//BinopNode")
def arithm():
"""
>>> arithm() == 9*2+3*8//6-10