PageRenderTime 43ms CodeModel.GetById 18ms 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
  1. require 'extend_template'
  2. f = Extend_template::Foo_0.new
  3. if f.test1(37) != 37
  4. raise RuntimeError
  5. end
  6. if f.test2(42) != 42
  7. raise RuntimeError
  8. end