import source from 1.3.40
[external/swig.git] / Examples / test-suite / python / primitive_ref_runme.py
1 from primitive_ref import *
2
3 if ref_int(3) != 3:
4     raise RuntimeError
5
6 if ref_uint(3) != 3:
7     raise RuntimeError
8
9 if ref_short(3) != 3:
10     raise RuntimeError
11
12 if ref_ushort(3) != 3:
13     raise RuntimeError
14
15 if ref_long(3) != 3:
16     raise RuntimeError
17
18 if ref_ulong(3) != 3:
19     raise RuntimeError
20
21 if ref_schar(3) != 3:
22     raise RuntimeError
23
24 if ref_uchar(3) != 3:
25     raise RuntimeError
26
27 if ref_float(3.5) != 3.5:
28     raise RuntimeError
29
30 if ref_double(3.5) != 3.5:
31     raise RuntimeError
32
33 if ref_bool(1) != 1:
34     raise RuntimeError
35
36 if ref_char('x') != 'x':
37     raise RuntimeError
38
39 if ref_over(0) != 0:
40     raise RuntimeError