git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
31 lines
456 B
Scilab
31 lines
456 B
Scilab
exec("swigtest.start", -1);
|
|
|
|
try
|
|
x = makeFoo();
|
|
catch
|
|
swigtesterror();
|
|
end
|
|
if fooCount() <> 1 then swigtesterror(); end
|
|
|
|
try
|
|
y = makeFoo();
|
|
catch
|
|
swigtesterror();
|
|
end
|
|
if fooCount() <> 2 then swigtesterror(); end
|
|
|
|
try
|
|
delete_Foo(x);
|
|
catch
|
|
swigtesterror();
|
|
end
|
|
if fooCount() <> 1 then swigtesterror(); end
|
|
|
|
try
|
|
delete_Foo(y);
|
|
catch
|
|
swigtesterror();
|
|
end
|
|
if fooCount() <> 0 then swigtesterror(); end
|
|
|
|
exec("swigtest.quit", -1);
|