scilab: implement li_carrays test
This commit is contained in:
parent
b7f97e98b9
commit
c5fc23e17e
1 changed files with 11 additions and 0 deletions
11
Examples/test-suite/scilab/li_carrays_runme.sci
Normal file
11
Examples/test-suite/scilab/li_carrays_runme.sci
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
exec("swigtest.start", -1);
|
||||
|
||||
d = new_intArray(10);
|
||||
|
||||
intArray_setitem(d, 0, 7);
|
||||
|
||||
intArray_setitem(d, 5, intArray_getitem(d, 0) + 3);
|
||||
|
||||
checkequal(intArray_getitem(d, 5) + intArray_getitem(d, 0), 17, "d(5) + d(0) <> 17");
|
||||
|
||||
exec("swigtest.quit", -1);
|
||||
Loading…
Add table
Add a link
Reference in a new issue