scilab: unsigned ints typemaps behave same as signed ints (1st commit: scalar)
This commit is contained in:
parent
4ba4591dba
commit
72c6552c2d
5 changed files with 175 additions and 91 deletions
|
|
@ -1,16 +1,16 @@
|
|||
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_uint(uint32(3)), 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_ushort(uint16(3)), 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_ulong(uint32(3)), 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_uchar(uint8(3)), 3, "ref_uchar() test fails.");
|
||||
|
||||
checkequal(ref_float(3), 3, "ref_float() test fails.");
|
||||
checkequal(ref_double(3), 3, "ref_double() test fails.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue