fix *INPUT typemaps for ptr types, now a null value is ok
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e7b400bc7d
commit
c57d081dfb
4 changed files with 70 additions and 5 deletions
15
SWIG/Examples/test-suite/python/input_runme.py
Normal file
15
SWIG/Examples/test-suite/python/input_runme.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from input import *
|
||||
|
||||
f = Foo()
|
||||
if f.foo(2) != 4:
|
||||
raise RuntimeError
|
||||
|
||||
if f.foo(None)!= None:
|
||||
raise RuntimeError
|
||||
|
||||
if sfoo("Hello") != "Hello world":
|
||||
raise RuntimeError
|
||||
|
||||
if sfoo(None) != None:
|
||||
raise RuntimeError
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue