PageRenderTime 56ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Python | 13 lines | 9 code | 4 blank | 0 comment | 3 complexity | 9da84abe81561e9feb77ac0a73f97e59 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. from smart_pointer_rename import *
  2. f = Foo()
  3. b = Bar(f)
  4. if b.test() != 3:
  5. raise RuntimeError
  6. if b.ftest1(1) != 1:
  7. raise RuntimeError
  8. if b.ftest2(2,3) != 2:
  9. raise RuntimeError