scilab: implement enum_var test

This commit is contained in:
Simon Marchetto 2014-02-07 18:17:58 +01:00
commit fbe6c13267
2 changed files with 10 additions and 1 deletions

View file

@ -3,6 +3,6 @@
%inline %{
enum Fruit { APPLE, PEAR };
Fruit test;
enum Fruit test;
%}

View 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);