PageRenderTime 25ms CodeModel.GetById 21ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/rel-1-3-25/SWIG/Examples/test-suite/ruby/template_typedef_cplx3_runme.rb

#
Ruby | 35 lines | 18 code | 11 blank | 6 comment | 0 complexity | abb9f354c29e34f09f5c53b37cd3ae0e MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1require 'template_typedef_cplx3'
 2
 3include Template_typedef_cplx3
 4
 5#
 6# this is OK
 7#
 8
 9
10s = Sin.new
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.new
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