/tags/rel-1-3-26/SWIG/Examples/test-suite/ruby/typedef_scope_runme.rb
# · Ruby · 13 lines · 10 code · 3 blank · 0 comment · 4 complexity · 240725783c42ad08ba2a90203cdabfc9 MD5 · raw file
- require 'typedef_scope'
- b = Typedef_scope::Bar.new
- x = b.test1(42, "hello")
- if x != 42
- puts "Failed!!"
- end
- x = b.test2(42, "hello")
- if x != "hello"
- puts "Failed!!"
- end