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

22 lines
584 B
Scilab

exec("swigtest.start", -1);
if UP_get()<>1 then swigtesterror(); end
if typeof(UP_get())<>"constant" then pause; end
if DOWN_get()<>2 then swigtesterror(); end
if typeof(DOWN_get())<>"constant" then pause; end
if LEFT_get()<>3 then swigtesterror(); end
if typeof(LEFT_get())<>"constant" then pause; end
if RIGHT_get()<>4 then swigtesterror(); end
if typeof(RIGHT_get())<>"constant" then pause; end
// TODO: move is a Scilab function...
//result = move(UP_get());
//result = move(DOWN_get());
//result = move(LEFT_get());
//result = move(RIGHT_get());
exec("swigtest.quit", -1);