/tags/rel-1-3-25/SWIG/Examples/test-suite/ruby/varargs_runme.rb
Ruby | 15 lines | 11 code | 4 blank | 0 comment | 6 complexity | dcf198f533cd7759f05c8b07b02229e9 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- 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