* A C and CPP tests generate and compile except tests using vectors (to be done) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12698 626c5289-ae23-0410-ae9c-e8d60b6d4f22
21 lines
584 B
Scilab
21 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);
|