PageRenderTime 39ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Ruby | 44 lines | 20 code | 16 blank | 8 comment | 24 complexity | 98f8918ca37c25d55584920c18c7fba6 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 'namespace_typemap'
  11. include Namespace_typemap
  12. raise RuntimeError if stest1("hello") != "hello"
  13. raise RuntimeError if stest2("hello") != "hello"
  14. raise RuntimeError if stest3("hello") != "hello"
  15. raise RuntimeError if stest4("hello") != "hello"
  16. raise RuntimeError if stest5("hello") != "hello"
  17. raise RuntimeError if stest6("hello") != "hello"
  18. raise RuntimeError if stest7("hello") != "hello"
  19. raise RuntimeError if stest8("hello") != "hello"
  20. raise RuntimeError if stest9("hello") != "hello"
  21. raise RuntimeError if stest10("hello") != "hello"
  22. raise RuntimeError if stest11("hello") != "hello"
  23. raise RuntimeError if stest12("hello") != "hello"
  24. begin
  25. ttest1(-14)
  26. raise RuntimeError
  27. rescue RangeError
  28. end