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:
William S Fulton 2004-10-20 21:06:10 +00:00
commit 90f3f92c26

View file

@ -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