From 5646b8085a2bfa04159e718803b4c96b256ab2de Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 4 Dec 2010 11:48:18 +0100 Subject: [PATCH] extended test case --- tests/run/builtincomplex.pyx | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- 2.26.2