PageRenderTime 26ms CodeModel.GetById 23ms app.highlight 2ms 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
 1require 'typedef_scope'
 2
 3b = Typedef_scope::Bar.new
 4
 5x = b.test1(42, "hello")
 6if x != 42
 7  puts "Failed!!"
 8end
 9
10x = b.test2(42, "hello")
11if x != "hello"
12  puts "Failed!!"
13end