several fixes, see CHANGES.current 10/04/2004
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6317 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
46dfd88e25
commit
776f15623e
17 changed files with 216 additions and 97 deletions
|
|
@ -1,6 +1,8 @@
|
|||
import overload_extend
|
||||
|
||||
f = overload_extend.Foo()
|
||||
if f.test() != 0:
|
||||
raise RuntimeError
|
||||
if f.test(3) != 1:
|
||||
raise RuntimeError
|
||||
if f.test("hello") != 2:
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import return_const_value
|
||||
import sys
|
||||
|
||||
p = return_const_value.FooPtr.getPtr()
|
||||
p = return_const_value.Foo_ptr.getPtr()
|
||||
if (p.getVal() != 17):
|
||||
print "Runtime test1 faild. p.getVal()=", p.getVal()
|
||||
sys.exit(1)
|
||||
|
||||
p = return_const_value.FooPtr.getConstPtr()
|
||||
p = return_const_value.Foo_ptr.getConstPtr()
|
||||
if (p.getVal() != 17):
|
||||
print "Runtime test2 faild. p.getVal()=", p.getVal()
|
||||
sys.exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue