mirror of https://github.com/swig/swig.git
19 lines
392 B
Python
19 lines
392 B
Python
import varargs
|
|
|
|
if varargs.test("Hello") != "Hello":
|
|
raise RuntimeError, "Failed"
|
|
|
|
f = varargs.Foo("Greetings")
|
|
if f.str != "Greetings":
|
|
raise RuntimeError, "Failed"
|
|
|
|
if f.test("Hello") != "Hello":
|
|
raise RuntimeError, "Failed"
|
|
|
|
|
|
if varargs.test_def("Hello",1) != "Hello":
|
|
raise RuntimeError, "Failed"
|
|
|
|
if varargs.test_def("Hello") != "Hello":
|
|
raise RuntimeError, "Failed"
|