PageRenderTime 15ms CodeModel.GetById 9ms app.highlight 5ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/test-suite/ruby/extend_template_runme.rb

#
Ruby | 10 lines | 8 code | 2 blank | 0 comment | 4 complexity | 0ac044696f5242730fa7941402406472 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1require 'extend_template'
 2
 3f = Extend_template::Foo_0.new
 4if f.test1(37) != 37
 5  raise RuntimeError
 6end
 7
 8if f.test2(42) != 42
 9  raise RuntimeError
10end