add vector test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4267bda1a9
commit
359d862a49
1 changed files with 8 additions and 0 deletions
|
|
@ -4,3 +4,11 @@ a = complex(1,2)
|
||||||
|
|
||||||
if complextest.Conj(a) != a.conjugate():
|
if complextest.Conj(a) != a.conjugate():
|
||||||
raise RuntimeError, "bad complex mapping"
|
raise RuntimeError, "bad complex mapping"
|
||||||
|
|
||||||
|
|
||||||
|
v = (complex(1,2), complex(2,3), complex(4,3), 1)
|
||||||
|
|
||||||
|
try:
|
||||||
|
print complextest.Copy_h(v)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue