scilab: implement primitive_ref test
This commit is contained in:
parent
c85a0a331f
commit
25cadaa9fe
1 changed files with 24 additions and 0 deletions
24
Examples/test-suite/scilab/primitive_ref_runme.sci
Normal file
24
Examples/test-suite/scilab/primitive_ref_runme.sci
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
exec("swigtest.start", -1);
|
||||
|
||||
checkequal(ref_int(3), 3, "ref_int() test fails.");
|
||||
checkequal(ref_uint(uint32(3)), uint32(3), "ref_uint() test fails.");
|
||||
|
||||
checkequal(ref_short(3), 3, "ref_short() test fails.");
|
||||
checkequal(ref_ushort(uint16(3)), uint16(3), "ref_ushort() test fails.");
|
||||
|
||||
checkequal(ref_long(3), 3, "ref_long() test fails.");
|
||||
checkequal(ref_ulong(uint32(3)), uint32(3), "ref_ulong() test fails.");
|
||||
|
||||
checkequal(ref_schar(3), 3, "ref_schar() test fails.");
|
||||
checkequal(ref_uchar(uint8(3)), uint8(3), "ref_uchar() test fails.");
|
||||
|
||||
checkequal(ref_float(3), 3, "ref_float() test fails.");
|
||||
checkequal(ref_double(3), 3, "ref_double() test fails.");
|
||||
|
||||
checkequal(ref_bool(%T), %T, "ref_bool() test fails.");
|
||||
|
||||
checkequal(ref_char('x'), 'x', "ref_char() test fails.");
|
||||
|
||||
checkequal(ref_over(0), 0, "ref_over() test fails.");
|
||||
|
||||
exec("swigtest.quit", -1);
|
||||
Loading…
Add table
Add a link
Reference in a new issue