/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
1require 'namespace_typemap' 2 3include Namespace_typemap 4 5raise RuntimeError if stest1("hello") != "hello" 6 7raise RuntimeError if stest2("hello") != "hello" 8 9raise RuntimeError if stest3("hello") != "hello" 10 11raise RuntimeError if stest4("hello") != "hello" 12 13raise RuntimeError if stest5("hello") != "hello" 14 15raise RuntimeError if stest6("hello") != "hello" 16 17raise RuntimeError if stest7("hello") != "hello" 18 19raise RuntimeError if stest8("hello") != "hello" 20 21raise RuntimeError if stest9("hello") != "hello" 22 23raise RuntimeError if stest10("hello") != "hello" 24 25raise RuntimeError if stest11("hello") != "hello" 26 27raise RuntimeError if stest12("hello") != "hello" 28 29begin 30 ttest1(-14) 31 raise RuntimeError 32rescue RangeError 33end