add complex test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
82d298ac31
commit
f1ed62c2a2
2 changed files with 37 additions and 0 deletions
6
Examples/test-suite/python/complextest_runme.py
Normal file
6
Examples/test-suite/python/complextest_runme.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import complextest
|
||||
|
||||
a = complex(1,2)
|
||||
|
||||
if complextest.Conj(a) != a.conjugate():
|
||||
raise RuntimeError, "bad complex mapping"
|
||||
Loading…
Add table
Add a link
Reference in a new issue