scilab: implement test inout

This commit is contained in:
Simon Marchetto 2014-02-11 10:10:28 +01:00
commit b0bff6f207

View file

@ -0,0 +1,15 @@
exec("swigtest.start", -1);
a = AddOne1(10);
if a <> 11 then swigtesterror(); end
[a, b, c] = AddOne3(1, 2, 3);
if a <> 2 then swigtesterror(); end
if b <> 3 then swigtesterror(); end
if c <> 4 then swigtesterror(); end
a = AddOne1r(20);
if a <> 22 then swigtesterror(); end
exec("swigtest.quit", -1);