PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/ruby/extend_template_runme.rb

#
Ruby | 21 lines | 9 code | 4 blank | 8 comment | 4 complexity | 6946597efe8b53313843f0620bfee223 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #!/usr/bin/env ruby
  2. #
  3. # Put description here
  4. #
  5. #
  6. #
  7. #
  8. #
  9. require 'swig_assert'
  10. require 'extend_template'
  11. f = Extend_template::Foo_0.new
  12. if f.test1(37) != 37
  13. raise RuntimeError
  14. end
  15. if f.test2(42) != 42
  16. raise RuntimeError
  17. end