/tags/rel-1.3.35/Examples/test-suite/python/template_typedef_cplx3_runme.py
Python | 34 lines | 18 code | 10 blank | 6 comment | 0 complexity | 6541b8b32f5457f4dcebcc3cd5262334 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1import string
2from template_typedef_cplx3 import *
3
4#
5# this is OK
6#
7
8
9s = Sin()
10s.get_base_value()
11s.get_value()
12s.get_arith_value()
13my_func_r(s)
14make_Multiplies_double_double_double_double(s,s)
15
16z = CSin()
17z.get_base_value()
18z.get_value()
19z.get_arith_value()
20my_func_c(z)
21make_Multiplies_complex_complex_complex_complex(z,z)
22
23#
24# Here we fail
25#
26d = make_Identity_double()
27my_func_r(d)
28
29c = make_Identity_complex()
30my_func_c(c)
31
32
33
34