/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
- require 'template_typedef_cplx3'
- include Template_typedef_cplx3
- #
- # this is OK
- #
- s = Sin.new
- s.get_base_value()
- s.get_value()
- s.get_arith_value()
- my_func_r(s)
- make_Multiplies_double_double_double_double(s,s)
- z = CSin.new
- z.get_base_value()
- z.get_value()
- z.get_arith_value()
- my_func_c(z)
- make_Multiplies_complex_complex_complex_complex(z,z)
- #
- # Here we fail
- #
- d = make_Identity_double()
- my_func_r(d)
- c = make_Identity_complex()
- my_func_c(c)
-