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

require 'swig_assert'
require 'casts'

include Casts

swig_assert( B.ancestors.include?(A), 'B.ancestors.include? A' )

a = A.new
a.hello

b = B.new
b.hello

swig_assert( b.kind_of?( A ), ' B.kind_of? A' )