/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
1import string
2from template_typedef_cplx2 import *
3from template_typedef_import import *
4
5#
6# this is OK
7#
8
9
10s = Sin()
11s.get_base_value()
12s.get_value()
13s.get_arith_value()
14my_func_r(s)
15make_Multiplies_double_double_double_double(s,s)
16
17z = CSin()
18z.get_base_value()
19z.get_value()
20z.get_arith_value()
21my_func_c(z)
22make_Multiplies_complex_complex_complex_complex(z,z)
23
24#
25# Here we fail
26#
27d = make_Identity_double()
28my_func_r(d)
29
30c = make_Identity_complex()
31my_func_c(c)
32
33
34
35