scilab: implement overload_numeric test
This commit is contained in:
parent
9a3562d7ef
commit
ad6e0145b3
1 changed files with 16 additions and 0 deletions
16
Examples/test-suite/scilab/overload_numeric_runme.sci
Normal file
16
Examples/test-suite/scilab/overload_numeric_runme.sci
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue