PageRenderTime 42ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-29/SWIG/Examples/test-suite/ruby/namespace_typemap_runme.rb

#
Ruby | 33 lines | 19 code | 14 blank | 0 comment | 24 complexity | d0491b1ea2319b0e76584f5ded384ec8 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. require 'namespace_typemap'
  2. include Namespace_typemap
  3. raise RuntimeError if stest1("hello") != "hello"
  4. raise RuntimeError if stest2("hello") != "hello"
  5. raise RuntimeError if stest3("hello") != "hello"
  6. raise RuntimeError if stest4("hello") != "hello"
  7. raise RuntimeError if stest5("hello") != "hello"
  8. raise RuntimeError if stest6("hello") != "hello"
  9. raise RuntimeError if stest7("hello") != "hello"
  10. raise RuntimeError if stest8("hello") != "hello"
  11. raise RuntimeError if stest9("hello") != "hello"
  12. raise RuntimeError if stest10("hello") != "hello"
  13. raise RuntimeError if stest11("hello") != "hello"
  14. raise RuntimeError if stest12("hello") != "hello"
  15. begin
  16. ttest1(-14)
  17. raise RuntimeError
  18. rescue RangeError
  19. end