PageRenderTime 22ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/test-suite/python/template_typedef_import_runme.py

#
Python | 35 lines | 19 code | 10 blank | 6 comment | 0 complexity | 0f60a8385616ba851e5cf6db63cedc2d MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. import string
  2. from template_typedef_cplx2 import *
  3. from template_typedef_import import *
  4. #
  5. # this is OK
  6. #
  7. s = Sin()
  8. s.get_base_value()
  9. s.get_value()
  10. s.get_arith_value()
  11. my_func_r(s)
  12. make_Multiplies_double_double_double_double(s,s)
  13. z = CSin()
  14. z.get_base_value()
  15. z.get_value()
  16. z.get_arith_value()
  17. my_func_c(z)
  18. make_Multiplies_complex_complex_complex_complex(z,z)
  19. #
  20. # Here we fail
  21. #
  22. d = make_Identity_double()
  23. my_func_r(d)
  24. c = make_Identity_complex()
  25. my_func_c(c)