scilab: implement null_pointer test

This commit is contained in:
Simon Marchetto 2014-03-04 09:51:43 +01:00
commit 85b1db1a91
2 changed files with 26 additions and 7 deletions

View file

@ -0,0 +1,13 @@
exec("swigtest.start", -1);
try
p = getnull();
if func(p) = %F then swigtesterror(); end
if func([]) = %F then swigtesterror(); end
catch
swigtesterror();
end
exec("swigtest.quit", -1);