PageRenderTime 76ms CodeModel.GetById 33ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Ruby | 19 lines | 6 code | 5 blank | 8 comment | 6 complexity | be2ee6f0a5164a60534dd3356804d79a 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 'overload_extend'
  11. f = Overload_extend::Foo.new
  12. raise RuntimeError if f.test(3) != 1
  13. raise RuntimeError if f.test("hello") != 2
  14. raise RuntimeError if f.test(3.5,2.5) != 6