/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
- 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