more varargs runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4579 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b39ab0aa29
commit
437e503be9
2 changed files with 9 additions and 2 deletions
|
|
@ -3,6 +3,9 @@ import varargs
|
|||
if varargs.test("Hello") != "Hello":
|
||||
raise RuntimeError, "Failed"
|
||||
|
||||
f = varargs.Foo()
|
||||
f = varargs.Foo("Greetings")
|
||||
if f.str != "Greetings":
|
||||
raise RuntimeError, "Failed"
|
||||
|
||||
if f.test("Hello") != "Hello":
|
||||
raise RuntimeError, "Failed"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,11 @@ if Varargs.test("Hello") != "Hello"
|
|||
raise RuntimeError, "Failed"
|
||||
end
|
||||
|
||||
f = Varargs::Foo.new
|
||||
f = Varargs::Foo.new("Greetings")
|
||||
if f.str != "Greetings"
|
||||
raise RuntimeError, "Failed"
|
||||
end
|
||||
|
||||
if f.test("Hello") != "Hello"
|
||||
raise RuntimeError, "Failed"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue