PageRenderTime 46ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. require 'typedef_scope'
  2. b = Typedef_scope::Bar.new
  3. x = b.test1(42, "hello")
  4. if x != 42
  5. puts "Failed!!"
  6. end
  7. x = b.test2(42, "hello")
  8. if x != "hello"
  9. puts "Failed!!"
  10. end