/trunk/Examples/test-suite/python/smart_pointer_templatevariables_runme.py

# · Python · 17 lines · 7 code · 5 blank · 5 comment · 2 complexity · ec965b507be4a400942c30f987745f87 MD5 · raw file

  1. from smart_pointer_templatevariables import *
  2. d = DiffImContainerPtr_D(create(1234, 5678))
  3. if (d.id != 1234):
  4. raise RuntimeError
  5. #if (d.xyz != 5678):
  6. # raise RuntimeError
  7. d.id = 4321
  8. #d.xyz = 8765
  9. if (d.id != 4321):
  10. raise RuntimeError
  11. #if (d.xyz != 8765):
  12. # raise RuntimeError