scilab: implement test inout
This commit is contained in:
parent
f624025e48
commit
b0bff6f207
1 changed files with 15 additions and 0 deletions
15
Examples/test-suite/scilab/inout_runme.sci
Normal file
15
Examples/test-suite/scilab/inout_runme.sci
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue