/trunk/Examples/test-suite/python/namespace_typemap_runme.py
Python | 82 lines | 56 code | 26 blank | 0 comment | 26 complexity | 6865fe266523db98a8e3e10cbc910fa9 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- from namespace_typemap import *
- if stest1("hello") != "hello":
- raise RuntimeError
- if stest2("hello") != "hello":
- raise RuntimeError
- if stest3("hello") != "hello":
- raise RuntimeError
- if stest4("hello") != "hello":
- raise RuntimeError
- if stest5("hello") != "hello":
- raise RuntimeError
- if stest6("hello") != "hello":
- raise RuntimeError
- if stest7("hello") != "hello":
- raise RuntimeError
- if stest8("hello") != "hello":
- raise RuntimeError
- if stest9("hello") != "hello":
- raise RuntimeError
- if stest10("hello") != "hello":
- raise RuntimeError
- if stest11("hello") != "hello":
- raise RuntimeError
- if stest12("hello") != "hello":
- raise RuntimeError
- c = complex(2,3)
- r = c.real
- if ctest1(c) != r:
- raise RuntimeError
- if ctest2(c) != r:
- raise RuntimeError
- if ctest3(c) != r:
- raise RuntimeError
- if ctest4(c) != r:
- raise RuntimeError
- if ctest5(c) != r:
- raise RuntimeError
- if ctest6(c) != r:
- raise RuntimeError
- if ctest7(c) != r:
- raise RuntimeError
- if ctest8(c) != r:
- raise RuntimeError
- if ctest9(c) != r:
- raise RuntimeError
- if ctest10(c) != r:
- raise RuntimeError
- if ctest11(c) != r:
- raise RuntimeError
- if ctest12(c) != r:
- raise RuntimeError
- try:
- ttest1(-14)
- raise RuntimeError
- except ValueError:
- pass