PageRenderTime 12ms CodeModel.GetById 1ms app.highlight 8ms 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
 1#!/usr/bin/env ruby
 2#
 3# Put description here
 4#
 5# 
 6# 
 7# 
 8#
 9
10require 'swig_assert'
11
12require 'namespace_typemap'
13
14include Namespace_typemap
15
16raise RuntimeError if stest1("hello") != "hello"
17
18raise RuntimeError if stest2("hello") != "hello"
19
20raise RuntimeError if stest3("hello") != "hello"
21
22raise RuntimeError if stest4("hello") != "hello"
23
24raise RuntimeError if stest5("hello") != "hello"
25
26raise RuntimeError if stest6("hello") != "hello"
27
28raise RuntimeError if stest7("hello") != "hello"
29
30raise RuntimeError if stest8("hello") != "hello"
31
32raise RuntimeError if stest9("hello") != "hello"
33
34raise RuntimeError if stest10("hello") != "hello"
35
36raise RuntimeError if stest11("hello") != "hello"
37
38raise RuntimeError if stest12("hello") != "hello"
39
40begin
41  ttest1(-14)
42  raise RuntimeError
43rescue RangeError
44end