PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/python/typemap_qualifier_strip_runme.py

#
Python | 54 lines | 34 code | 20 blank | 0 comment | 16 complexity | 0bb5ca0507683252c4745f6613e97e7e MD5 | raw file
 1import typemap_qualifier_strip
 2
 3val = typemap_qualifier_strip.create_int(111)
 4if typemap_qualifier_strip.testA1(val) != 1234:
 5    raise RuntimeError
 6
 7if typemap_qualifier_strip.testA2(val) != 1234:
 8    raise RuntimeError
 9
10if typemap_qualifier_strip.testA3(val) != 1234:
11    raise RuntimeError
12
13if typemap_qualifier_strip.testA4(val) != 1234:
14    raise RuntimeError
15
16
17if typemap_qualifier_strip.testB1(val) != 111:
18    raise RuntimeError
19
20if typemap_qualifier_strip.testB2(val) != 111:
21    raise RuntimeError
22
23if typemap_qualifier_strip.testB3(val) != 111:
24    raise RuntimeError
25
26if typemap_qualifier_strip.testB4(val) != 111:
27    raise RuntimeError
28
29
30if typemap_qualifier_strip.testC1(val) != 5678:
31    raise RuntimeError
32
33if typemap_qualifier_strip.testC2(val) != 111:
34    raise RuntimeError
35
36if typemap_qualifier_strip.testC3(val) != 5678:
37    raise RuntimeError
38
39if typemap_qualifier_strip.testC4(val) != 111:
40    raise RuntimeError
41
42
43if typemap_qualifier_strip.testD1(val) != 111:
44    raise RuntimeError
45
46if typemap_qualifier_strip.testD2(val) != 3456:
47    raise RuntimeError
48
49if typemap_qualifier_strip.testD3(val) != 111:
50    raise RuntimeError
51
52if typemap_qualifier_strip.testD4(val) != 111:
53    raise RuntimeError
54