swig/Examples/test-suite/python/primitive_ref_runme.py
Marcelo Matus 5a0b7df38f test for ref+int overload
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-25 19:06:50 +00:00

40 lines
633 B
Python

from primitive_ref import *
if ref_int(3) != 3:
raise RuntimeError
if ref_uint(3) != 3:
raise RuntimeError
if ref_short(3) != 3:
raise RuntimeError
if ref_ushort(3) != 3:
raise RuntimeError
if ref_long(3) != 3:
raise RuntimeError
if ref_ulong(3) != 3:
raise RuntimeError
if ref_schar(3) != 3:
raise RuntimeError
if ref_uchar(3) != 3:
raise RuntimeError
if ref_float(3.5) != 3.5:
raise RuntimeError
if ref_double(3.5) != 3.5:
raise RuntimeError
if ref_bool(1) != 1:
raise RuntimeError
if ref_char('x') != 'x':
raise RuntimeError
if ref_over(0) != 0:
raise RuntimeError