scilab: implement cpp_enum test
This commit is contained in:
parent
6754671075
commit
9ecb38976d
1 changed files with 10 additions and 0 deletions
10
Examples/test-suite/scilab/cpp_enum_runme.sci
Normal file
10
Examples/test-suite/scilab/cpp_enum_runme.sci
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
exec("swigtest.start", -1);
|
||||
|
||||
f = new_Foo();
|
||||
|
||||
if Foo_hola_get(f) <> Hello_get() then swigtesterror("Foo_hola_get() <> ""Hello"""); end
|
||||
|
||||
Foo_hola_set(f, Hi_get());
|
||||
if Foo_hola_get(f) <> Hi_get() then swigtesterror("Foo_hola_get() <> ""Hi"""); end
|
||||
|
||||
exec("swigtest.quit", -1);
|
||||
Loading…
Add table
Add a link
Reference in a new issue