From: Stefan Behnel Date: Sat, 4 Dec 2010 10:48:18 +0000 (+0100) Subject: extended test case X-Git-Tag: 0.14.alpha0~21 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5646b8085a2bfa04159e718803b4c96b256ab2de;p=cython.git extended test case --- diff --git a/tests/run/builtincomplex.pyx b/tests/run/builtincomplex.pyx index 90a24b48..4f99c748 100644 --- a/tests/run/builtincomplex.pyx +++ b/tests/run/builtincomplex.pyx @@ -37,3 +37,10 @@ def complex_coercion(): cdef double complex c_c = py_c cdef object py = c_c return (c_c.real, c_c.imag, py.real, py.imag) + +def complex_arg(complex c): + """ + >>> complex_arg(1+2j) + (1.0, 2.0) + """ + return (c.real, c.imag)