PageRenderTime 37ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Ruby | 36 lines | 17 code | 11 blank | 8 comment | 8 complexity | 9b27df44932a3acdc324230ac61af301 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 description here
  4. #
  5. #
  6. #
  7. #
  8. #
  9. require 'swig_assert'
  10. require 'director_basic'
  11. class MyFoo < Director_basic::Foo
  12. def ping
  13. "MyFoo::ping()"
  14. end
  15. end
  16. a = MyFoo.new
  17. raise RuntimeError if a.ping != "MyFoo::ping()"
  18. raise RuntimeError if a.pong != "Foo::pong();MyFoo::ping()"
  19. b = Director_basic::Foo.new
  20. raise RuntimeError if b.ping != "Foo::ping()"
  21. raise RuntimeError if b.pong != "Foo::pong();Foo::ping()"
  22. a = Director_basic::MyClass.new
  23. a = Director_basic::MyClassT_i.new
  24. a = Director_basic::MyClass.new 1
  25. a = Director_basic::MyClassT_i.new 1