summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/typemap_qualifier_strip_runme.py
blob: dff94f8b4a0813090bdf0d7bbc4dd0ebaba018ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import typemap_qualifier_strip

val = typemap_qualifier_strip.create_int(111)
if typemap_qualifier_strip.testA1(val) != 1234:
    raise RuntimeError

if typemap_qualifier_strip.testA2(val) != 1234:
    raise RuntimeError

if typemap_qualifier_strip.testA3(val) != 1234:
    raise RuntimeError

if typemap_qualifier_strip.testA4(val) != 1234:
    raise RuntimeError


if typemap_qualifier_strip.testB1(val) != 111:
    raise RuntimeError

if typemap_qualifier_strip.testB2(val) != 111:
    raise RuntimeError

if typemap_qualifier_strip.testB3(val) != 111:
    raise RuntimeError

if typemap_qualifier_strip.testB4(val) != 111:
    raise RuntimeError


if typemap_qualifier_strip.testC1(val) != 5678:
    raise RuntimeError

if typemap_qualifier_strip.testC2(val) != 111:
    raise RuntimeError

if typemap_qualifier_strip.testC3(val) != 5678:
    raise RuntimeError

if typemap_qualifier_strip.testC4(val) != 111:
    raise RuntimeError


if typemap_qualifier_strip.testD1(val) != 111:
    raise RuntimeError

if typemap_qualifier_strip.testD2(val) != 3456:
    raise RuntimeError

if typemap_qualifier_strip.testD3(val) != 111:
    raise RuntimeError

if typemap_qualifier_strip.testD4(val) != 111:
    raise RuntimeError