PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Python | 12 lines | 8 code | 4 blank | 0 comment | 2 complexity | b9804e721ce8b4f09be86a09f9c6957a MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. import typedef_scope
  2. b = typedef_scope.Bar()
  3. x = b.test1(42,"hello")
  4. if x != 42:
  5. print "Failed!!"
  6. x = b.test2(42,"hello")
  7. if x != "hello":
  8. print "Failed!!"