Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/scilab/li_carrays_runme.sci
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

12 lines
247 B
Scilab

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