Commit 5646b808 authored by Stefan Behnel's avatar Stefan Behnel

extended test case

parent 193388a3
...@@ -37,3 +37,10 @@ def complex_coercion(): ...@@ -37,3 +37,10 @@ def complex_coercion():
cdef double complex c_c = py_c cdef double complex c_c = py_c
cdef object py = c_c cdef object py = c_c
return (c_c.real, c_c.imag, py.real, py.imag) 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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment