/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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- 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