implement varargs cpptest
This commit is contained in:
parent
3780a46f39
commit
18e3f1fe5f
1 changed files with 17 additions and 0 deletions
17
Examples/test-suite/scilab/varargs_runme.sci
Normal file
17
Examples/test-suite/scilab/varargs_runme.sci
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
exec("swigtest.start", -1);
|
||||
|
||||
checkequal(test("Hello"), "Hello", "test(""Hello"")");
|
||||
|
||||
f = new_Foo("Greetings");
|
||||
checkequal(Foo_str_get(f), "Greetings", "new_Foo(""Greetings"")");
|
||||
|
||||
checkequal(Foo_test(f, "Hello"), "Hello", "Foo_test(f)");
|
||||
delete_Foo(f);
|
||||
|
||||
checkequal(Foo_statictest("Hello", 1), "Hello", "Foo_statictest(""Hello"", 1)");
|
||||
|
||||
checkequal(test_def("Hello", 1), "Hello", "test_def(""Hello"", 1)");
|
||||
|
||||
checkequal(test_def("Hello"), "Hello", "test_def(""Hello"")");
|
||||
|
||||
exec("swigtest.quit", -1);
|
||||
Loading…
Add table
Add a link
Reference in a new issue