/tags/rel-1.3.35/Examples/test-suite/ruby/class_ignore_runme.rb

# · Ruby · 21 lines · 6 code · 5 blank · 10 comment · 2 complexity · 9482fbe6d84cacf548d7df5b94d5088f MD5 · raw file

  1. #!/usr/bin/env ruby
  2. #
  3. # Put description here
  4. #
  5. #
  6. #
  7. #
  8. #
  9. require 'swig_assert'
  10. require 'class_ignore'
  11. a = Class_ignore::Bar.new
  12. # Even though we didn't wrap the Foo class, this call
  13. # to do_blah() should succeed.
  14. if Class_ignore.do_blah(a) != "Bar::blah"
  15. raise RuntimeError
  16. end