summaryrefslogtreecommitdiff
path: root/Examples/test-suite/ruby/varargs_runme.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/ruby/varargs_runme.rb')
-rw-r--r--Examples/test-suite/ruby/varargs_runme.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/Examples/test-suite/ruby/varargs_runme.rb b/Examples/test-suite/ruby/varargs_runme.rb
new file mode 100644
index 0000000..9825c25
--- /dev/null
+++ b/Examples/test-suite/ruby/varargs_runme.rb
@@ -0,0 +1,26 @@
+#!/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
+