more test files for STL
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
359d862a49
commit
9e22799f04
6 changed files with 390 additions and 0 deletions
17
SWIG/Examples/test-suite/python/implicittest_runme.py
Normal file
17
SWIG/Examples/test-suite/python/implicittest_runme.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
from implicittest import *
|
||||
b = B()
|
||||
ai = A(1)
|
||||
ad = A(2.0)
|
||||
ab = A(b)
|
||||
|
||||
print ai, get(ai)
|
||||
print ad, get(ad)
|
||||
print ab, get(ab)
|
||||
|
||||
if get(ai) != get(1):
|
||||
raise RuntimeError,"bad implicit type"
|
||||
if get(ad) != get(2.0):
|
||||
raise RuntimeError,"bad implicit type"
|
||||
if get(ab) != get(b):
|
||||
raise RuntimeError,"bad implicit type"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue