PageRenderTime 20ms CodeModel.GetById 12ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1#!/usr/bin/env ruby
 2#
 3# Put description here
 4#
 5# 
 6# 
 7# 
 8#
 9
10require 'swig_assert'
11
12require 'template_typedef_cplx4'
13
14include Template_typedef_cplx4
15
16#
17# this is OK
18#
19
20
21s = Sin.new
22s.get_base_value()
23s.get_value()
24s.get_arith_value()
25my_func_r(s)
26make_Multiplies_double_double_double_double(s,s)
27
28z = CSin.new
29z.get_base_value()
30z.get_value()
31z.get_arith_value()
32my_func_c(z)
33make_Multiplies_complex_complex_complex_complex(z,z)
34
35#
36# Here we fail
37#
38d = make_Identity_double()
39my_func_r(d)
40
41c = make_Identity_complex()
42my_func_c(c)
43  
44
45
46