scilab: implement null_pointer test
This commit is contained in:
parent
9ecb38976d
commit
85b1db1a91
2 changed files with 26 additions and 7 deletions
13
Examples/test-suite/scilab/null_pointer_runme.sci
Normal file
13
Examples/test-suite/scilab/null_pointer_runme.sci
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue