/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
- #!/usr/bin/env ruby
- #
- # Put description here
- #
- #
- #
- #
- #
- require 'swig_assert'
- require 'overload_extend'
- f = Overload_extend::Foo.new
- raise RuntimeError if f.test(3) != 1
- raise RuntimeError if f.test("hello") != 2
- raise RuntimeError if f.test(3.5,2.5) != 6