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

17 lines
417 B
Scilab

exec("swigtest.start", -1);
nums = new_Nums();
// In overloading in Scilab, double has priority over all other numeric types
checkequal(Nums_over(nums, 0), "double", "Nums_over(nums, 0)");
// Just checkequal if the following are accepted without exceptions being thrown
Nums_doublebounce(nums, %inf);
Nums_doublebounce(nums, -%inf);
Nums_doublebounce(nums, %nan);
delete_Nums(nums);
exec("swigtest.quit", -1);