PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Python | 34 lines | 18 code | 10 blank | 6 comment | 0 complexity | 303e44fd30b2b2406373f214e5bddac8 MD5 | raw file
 1import string
 2from template_typedef_cplx4 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