Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/ruby/varargs_runme.rb
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

27 lines
333 B
Ruby

#!/usr/bin/env ruby
#
# Put description here
#
#
#
#
#
require 'swig_assert'
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