default args in C code test added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6454 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
04e7f11296
commit
90f3f92c26
1 changed files with 7 additions and 1 deletions
|
|
@ -12,5 +12,11 @@ if f.test("hello",20) != 1020:
|
|||
if f.test("hello",20,100) != 120:
|
||||
raise RuntimeError
|
||||
|
||||
|
||||
# C default args
|
||||
if f.test(f) != 30:
|
||||
raise RuntimeError
|
||||
if f.test(f,100) != 120:
|
||||
raise RuntimeError
|
||||
if f.test(f,100,200) != 300:
|
||||
raise RuntimeError
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue