/trunk/Examples/test-suite/python/special_variable_macros_runme.py
Python | 16 lines | 14 code | 2 blank | 0 comment | 6 complexity | 4820600b9ea76215ccd28db2b76fd932 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- import special_variable_macros
- name = special_variable_macros.Name()
- if special_variable_macros.testFred(name) != "none":
- raise "test failed"
- if special_variable_macros.testJack(name) != "$specialname":
- raise "test failed"
- if special_variable_macros.testJill(name) != "jilly":
- raise "test failed"
- if special_variable_macros.testMary(name) != "SWIGTYPE_p_NameWrap":
- raise "test failed"
- if special_variable_macros.testJim(name) != "multiname num":
- raise "test failed"
- if special_variable_macros.testJohn(special_variable_macros.PairIntBool(10, False)) != 123:
- raise "test failed"