more %ignore tests

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-11-09 21:28:04 +00:00
commit 263b2af0c5

View file

@ -25,19 +25,40 @@ try:
error = 1
except:
error = 0
if error: raise RuntimeError,"ignore is not working"
if error: raise RuntimeError,"Foo::Foo ignore is not working"
try:
f = default_args.Foo(1,2)
error = 1
except:
error = 0
if error: raise RuntimeError,"ignore is not working"
if error: raise RuntimeError,"Foo::Foo ignore is not working"
try:
f = default_args.Foo(1,2,3)
error = 1
except:
error = 0
if error: raise RuntimeError,"ignore is not working"
if error: raise RuntimeError,"Foo::Foo ignore is not working"
try:
m = f.meth(1)
error = 1
except:
error = 0
if error: raise RuntimeError,"Foo::meth ignore is not working"
try:
m = f.meth(1,2)
error = 1
except:
error = 0
if error: raise RuntimeError,"Foo::meth ignore is not working"
try:
m = f.meth(1,2,3)
error = 1
except:
error = 0
if error: raise RuntimeError,"Foo::meth ignore is not working"