swig/Examples/test-suite/ruby/overload_extend_runme.rb
William S Fulton 6cdc20d8e6 fixes for changes in the test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 21:04:28 +00:00

8 lines
181 B
Ruby
Executable file

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