swig/Examples/test-suite/ruby/varargs_runme.rb
William S Fulton 437e503be9 more varargs runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4579 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-19 20:50:54 +00:00

15 lines
251 B
Ruby

require 'varargs'
if Varargs.test("Hello") != "Hello"
raise RuntimeError, "Failed"
end
f = Varargs::Foo.new("Greetings")
if f.str != "Greetings"
raise RuntimeError, "Failed"
end
if f.test("Hello") != "Hello"
raise RuntimeError, "Failed"
end