extended test case
authorStefan Behnel <scoder@users.berlios.de>
Sat, 4 Dec 2010 10:48:18 +0000 (11:48 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 4 Dec 2010 10:48:18 +0000 (11:48 +0100)
tests/run/builtincomplex.pyx

index 90a24b4879db8b797d127b09736a2aeaac0e95f2..4f99c7486e9b049a61aba9f24c3701104b746beb 100644 (file)
@@ -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)