PageRenderTime 25ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/ruby/casts_runme.rb

#
Ruby | 23 lines | 9 code | 6 blank | 8 comment | 0 complexity | a48404c3d5afb4d9187151da9246f9fd MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #!/usr/bin/env ruby
  2. #
  3. # Put script description here.
  4. #
  5. #
  6. #
  7. #
  8. #
  9. require 'swig_assert'
  10. require 'casts'
  11. include Casts
  12. swig_assert( B.ancestors.include?(A), 'B.ancestors.include? A' )
  13. a = A.new
  14. a.hello
  15. b = B.new
  16. b.hello
  17. swig_assert( b.kind_of?( A ), ' B.kind_of? A' )