/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
- #!/usr/bin/env ruby
- #
- # Put description here
- #
- #
- #
- #
- #
- require 'swig_assert'
- require 'namespace_typemap'
- include Namespace_typemap
- raise RuntimeError if stest1("hello") != "hello"
- raise RuntimeError if stest2("hello") != "hello"
- raise RuntimeError if stest3("hello") != "hello"
- raise RuntimeError if stest4("hello") != "hello"
- raise RuntimeError if stest5("hello") != "hello"
- raise RuntimeError if stest6("hello") != "hello"
- raise RuntimeError if stest7("hello") != "hello"
- raise RuntimeError if stest8("hello") != "hello"
- raise RuntimeError if stest9("hello") != "hello"
- raise RuntimeError if stest10("hello") != "hello"
- raise RuntimeError if stest11("hello") != "hello"
- raise RuntimeError if stest12("hello") != "hello"
- begin
- ttest1(-14)
- raise RuntimeError
- rescue RangeError
- end