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

/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
 1import special_variable_macros
 2
 3name = special_variable_macros.Name()
 4if special_variable_macros.testFred(name) != "none":
 5  raise "test failed"
 6if special_variable_macros.testJack(name) != "$specialname":
 7  raise "test failed"
 8if special_variable_macros.testJill(name) != "jilly":
 9  raise "test failed"
10if special_variable_macros.testMary(name) != "SWIGTYPE_p_NameWrap":
11  raise "test failed"
12if special_variable_macros.testJim(name) != "multiname num":
13  raise "test failed"
14if special_variable_macros.testJohn(special_variable_macros.PairIntBool(10, False)) != 123:
15  raise "test failed"
16