PageRenderTime 27ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Python | 54 lines | 34 code | 20 blank | 0 comment | 16 complexity | 0bb5ca0507683252c4745f6613e97e7e MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. import typemap_qualifier_strip
  2. val = typemap_qualifier_strip.create_int(111)
  3. if typemap_qualifier_strip.testA1(val) != 1234:
  4. raise RuntimeError
  5. if typemap_qualifier_strip.testA2(val) != 1234:
  6. raise RuntimeError
  7. if typemap_qualifier_strip.testA3(val) != 1234:
  8. raise RuntimeError
  9. if typemap_qualifier_strip.testA4(val) != 1234:
  10. raise RuntimeError
  11. if typemap_qualifier_strip.testB1(val) != 111:
  12. raise RuntimeError
  13. if typemap_qualifier_strip.testB2(val) != 111:
  14. raise RuntimeError
  15. if typemap_qualifier_strip.testB3(val) != 111:
  16. raise RuntimeError
  17. if typemap_qualifier_strip.testB4(val) != 111:
  18. raise RuntimeError
  19. if typemap_qualifier_strip.testC1(val) != 5678:
  20. raise RuntimeError
  21. if typemap_qualifier_strip.testC2(val) != 111:
  22. raise RuntimeError
  23. if typemap_qualifier_strip.testC3(val) != 5678:
  24. raise RuntimeError
  25. if typemap_qualifier_strip.testC4(val) != 111:
  26. raise RuntimeError
  27. if typemap_qualifier_strip.testD1(val) != 111:
  28. raise RuntimeError
  29. if typemap_qualifier_strip.testD2(val) != 3456:
  30. raise RuntimeError
  31. if typemap_qualifier_strip.testD3(val) != 111:
  32. raise RuntimeError
  33. if typemap_qualifier_strip.testD4(val) != 111:
  34. raise RuntimeError