scilab: implement enum_var test
This commit is contained in:
parent
f7fc09d025
commit
fbe6c13267
2 changed files with 10 additions and 1 deletions
|
|
@ -3,6 +3,6 @@
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
enum Fruit { APPLE, PEAR };
|
enum Fruit { APPLE, PEAR };
|
||||||
Fruit test;
|
enum Fruit test;
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
9
Examples/test-suite/scilab/enum_var_runme.sci
Normal file
9
Examples/test-suite/scilab/enum_var_runme.sci
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
exec("swigtest.start", -1);
|
||||||
|
|
||||||
|
test_set(APPLE_get());
|
||||||
|
if test_get() <> APPLE_get() then swigtesterror(); end
|
||||||
|
|
||||||
|
test_set(PEAR_get());
|
||||||
|
if test_get() <> PEAR_get() then swigtesterror(); end
|
||||||
|
|
||||||
|
exec("swigtest.quit", -1);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue