/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

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