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

# · Ruby · 21 lines · 9 code · 4 blank · 8 comment · 4 complexity · 6946597efe8b53313843f0620bfee223 MD5 · raw file

  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