Improve Scilab test suite with start/quit scripts + remove useless display.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Vincent Couvert 2010-10-14 09:15:59 +00:00
commit f7d5a8cccc
22 changed files with 273 additions and 125 deletions

View file

@ -1,15 +1,31 @@
exec loader.sce;
exec("swigtest.start", -1);
x = add(3, 4);
if x <> 7 then pause, end
try
x = add(3, 4);
catch
swigtesterror();
end
if x <> 7 then swigtesterror(); end
y = subtract(3,4);
if y <> -1 then pause, end
try
y = subtract(3,4);
catch
swigtesterror();
end
if y <> -1 then swigtesterror(); end
z = mul(3,4);
if z <> 12 then pause, end
try
z = mul(3,4);
catch
swigtesterror();
end
if z <> 12 then swigtesterror(); end
w = divide(3,4);
if w <> 0 then pause, end
try
w = divide(3,4);
catch
swigtesterror();
end
if w <> 0 then swigtesterror(); end
exit
exec("swigtest.quit", -1);