PageRenderTime 45ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Ruby | 34 lines | 19 code | 7 blank | 8 comment | 0 complexity | d4fe248c056beb6db03e27a6e21b89ab 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 'abstract_access'
  11. include Abstract_access
  12. begin
  13. a = A.new
  14. rescue TypeError
  15. swig_assert(true, binding, 'A.new')
  16. end
  17. begin
  18. b = B.new
  19. rescue TypeError
  20. swig_assert(true, binding, 'B.new')
  21. end
  22. begin
  23. c = C.new
  24. rescue TypeError
  25. swig_assert(true, binding, 'C.new')
  26. end
  27. swig_assert( 'D.new' )