scilab: implement return_const_value test
This commit is contained in:
parent
c5fc23e17e
commit
cab9a993d5
1 changed files with 11 additions and 0 deletions
11
Examples/test-suite/scilab/return_const_value_runme.sci
Normal file
11
Examples/test-suite/scilab/return_const_value_runme.sci
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
exec("swigtest.start", -1);
|
||||
|
||||
foo_ptr = Foo_ptr_getPtr();
|
||||
foo = Foo_ptr___deref__(foo_ptr);
|
||||
checkequal(Foo_getVal(foo), 17, "Foo_getVal(p)");
|
||||
|
||||
foo_ptr = Foo_ptr_getConstPtr();
|
||||
foo = Foo_ptr___deref__(foo_ptr);
|
||||
checkequal(Foo_getVal(foo), 17, "Foo_getVal(p)");
|
||||
|
||||
exec("swigtest.quit", -1);
|
||||
Loading…
Add table
Add a link
Reference in a new issue