/trunk/Examples/test-suite/ruby/template_typedef_cplx4_runme.rb
Ruby | 46 lines | 19 code | 13 blank | 14 comment | 0 complexity | d0bedc3301e6cc50b52682a8808acb6d MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- #!/usr/bin/env ruby
- #
- # Put description here
- #
- #
- #
- #
- #
- require 'swig_assert'
- require 'template_typedef_cplx4'
- include Template_typedef_cplx4
- #
- # 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)
-