Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/scilab/newobject2_runme.sci
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

32 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);