scilab: implement struct_value test
This commit is contained in:
parent
68cb49600d
commit
1eb7474b72
1 changed files with 16 additions and 0 deletions
16
Examples/test-suite/scilab/struct_value_runme.sci
Normal file
16
Examples/test-suite/scilab/struct_value_runme.sci
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
exec("swigtest.start", -1);
|
||||
|
||||
foo = new_Foo();
|
||||
Foo_x_set(foo, 1);
|
||||
if Foo_x_get(foo) <> 1 then swigtesterror(); end
|
||||
|
||||
bar = new_Bar();
|
||||
Bar_a_set(bar, foo);
|
||||
a = Bar_a_get(bar);
|
||||
if Foo_x_get(a) <> 1 then swigtesterror(); end
|
||||
|
||||
Bar_b_set(bar, foo);
|
||||
b = Bar_b_get(bar);
|
||||
if Foo_x_get(b) <> 1 then swigtesterror(); end
|
||||
|
||||
exec("swigtest.quit", -1);
|
||||
Loading…
Add table
Add a link
Reference in a new issue