projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
193388a
)
extended test case
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 4 Dec 2010 10:48:18 +0000
(11:48 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 4 Dec 2010 10:48:18 +0000
(11:48 +0100)
tests/run/builtincomplex.pyx
patch
|
blob
|
history
diff --git
a/tests/run/builtincomplex.pyx
b/tests/run/builtincomplex.pyx
index 90a24b4879db8b797d127b09736a2aeaac0e95f2..4f99c7486e9b049a61aba9f24c3701104b746beb 100644
(file)
--- 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)