git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
23 lines
320 B
Ruby
Executable file
23 lines
320 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
#
|
|
# Put script description here.
|
|
#
|
|
# Author:: gga
|
|
# Copyright:: 2007
|
|
# License:: Ruby
|
|
#
|
|
|
|
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' )
|