- source files and Makefiles need never be executable - scripts are run directly by their interpreters in the test suites, so also do not need to be executable
23 lines
273 B
Ruby
23 lines
273 B
Ruby
#!/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' )
|