minor runtime test mods

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6302 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-10-04 20:04:22 +00:00
commit 571292260e
3 changed files with 20 additions and 28 deletions

View file

@ -1,38 +1,38 @@
use primitive_ref;
if (primitive_ref::ref_int(3) != 3) {
print "ref_int failed!\n";
die "ref_int failed!\n";
}
if (primitive_ref::ref_uint(3) != 3) {
print "ref_uint failed!\n";
die "ref_uint failed!\n";
}
if (primitive_ref::ref_short(3) != 3) {
print "ref_short failed!\n";
die "ref_short failed!\n";
}
if (primitive_ref::ref_ushort(3) != 3) {
print "ref_ushort failed!\n";
die "ref_ushort failed!\n";
}
if (primitive_ref::ref_long(3) != 3) {
print "ref_long failed!\n";
die "ref_long failed!\n";
}
if (primitive_ref::ref_ulong(3) != 3) {
print "ref_ulong failed!\n";
die "ref_ulong failed!\n";
}
if (primitive_ref::ref_schar(3) != 3) {
print "ref_schar failed!\n";
die "ref_schar failed!\n";
}
if (primitive_ref::ref_uchar(3) != 3) {
print "ref_uchar failed!\n";
die "ref_uchar failed!\n";
}
if (primitive_ref::ref_bool(1) != 1) {
print "ref_bool failed!\n";
die "ref_bool failed!\n";
}
if (primitive_ref::ref_float(3.5) != 3.5) {
print "ref_float failed!\n";
die "ref_float failed!\n";
}
if (primitive_ref::ref_double(3.5) != 3.5) {
print "ref_double failed!\n";
die "ref_double failed!\n";
}
if (primitive_ref::ref_char('x') != 'x') {
print "ref_char failed!\n";
die "ref_char failed!\n";
}