projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4a8d98
)
add test for long long complex type
author
Lisandro Dalcin
<dalcinl@gmail.com>
Wed, 14 Apr 2010 16:14:49 +0000
(13:14 -0300)
committer
Lisandro Dalcin
<dalcinl@gmail.com>
Wed, 14 Apr 2010 16:14:49 +0000
(13:14 -0300)
tests/run/complex_int_T446.pyx
patch
|
blob
|
history
diff --git
a/tests/run/complex_int_T446.pyx
b/tests/run/complex_int_T446.pyx
index d2afae58918114e88d5d5657ab7815fc38e21785..c9ee5519e789416fb5b27b3c83eb04d46ae66124 100644
(file)
--- a/
tests/run/complex_int_T446.pyx
+++ b/
tests/run/complex_int_T446.pyx
@@
-43,4
+43,18
@@
def test_conjugate(long complex z):
>>> test_conjugate(2+3j)
(2-3j)
"""
- return z.conjugate()
\ No newline at end of file
+ return z.conjugate()
+
+def test_conjugate2(short complex z):
+ """
+ >>> test_conjugate2(2+3j)
+ (2-3j)
+ """
+ return z.conjugate()
+
+def test_conjugate3(long long complex z):
+ """
+ >>> test_conjugate3(2+3j)
+ (2-3j)
+ """
+ return z.conjugate()