summaryrefslogtreecommitdiff
path: root/Examples/test-suite/ruby/dynamic_cast_runme.rb
blob: 8239051b1f507cbe17ee8d6b8daa15d35a37707c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env ruby
#
# Put description here
#
# 
# 
# 
#

require 'swig_assert'

require 'dynamic_cast'

f = Dynamic_cast::Foo.new
b = Dynamic_cast::Bar.new

x = f.blah
y = b.blah

a = Dynamic_cast.do_test(y)
if a != "Bar::test"
  puts "Failed!!"
end