default arguments added to overloaded methods
Fix so that the test uses the correct module! git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6303 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
571292260e
commit
5b33b2f08f
1 changed files with 7 additions and 2 deletions
|
|
@ -1,11 +1,16 @@
|
|||
import overload_extend
|
||||
import overload_extendc
|
||||
|
||||
f = overload_extend.Foo()
|
||||
f = overload_extendc.Foo()
|
||||
if f.test(3) != 1:
|
||||
raise RuntimeError
|
||||
if f.test("hello") != 2:
|
||||
raise RuntimeError
|
||||
if f.test(3.5,2.5) != 3:
|
||||
raise RuntimeError
|
||||
if f.test("hello",20) != 1020:
|
||||
raise RuntimeError
|
||||
if f.test("hello",20,100) != 120:
|
||||
raise RuntimeError
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue