diff --git a/Examples/test-suite/python/varargs_runme.py b/Examples/test-suite/python/varargs_runme.py index 2addccb93..83c889e0e 100644 --- a/Examples/test-suite/python/varargs_runme.py +++ b/Examples/test-suite/python/varargs_runme.py @@ -3,6 +3,9 @@ import varargs if varargs.test("Hello") != "Hello": raise RuntimeError, "Failed" -f = varargs.Foo() +f = varargs.Foo("Greetings") +if f.str != "Greetings": + raise RuntimeError, "Failed" + if f.test("Hello") != "Hello": raise RuntimeError, "Failed" diff --git a/Examples/test-suite/ruby/varargs_runme.rb b/Examples/test-suite/ruby/varargs_runme.rb index cafd77b7c..2c4b3ab9d 100644 --- a/Examples/test-suite/ruby/varargs_runme.rb +++ b/Examples/test-suite/ruby/varargs_runme.rb @@ -4,7 +4,11 @@ if Varargs.test("Hello") != "Hello" raise RuntimeError, "Failed" end -f = Varargs::Foo.new +f = Varargs::Foo.new("Greetings") +if f.str != "Greetings" + raise RuntimeError, "Failed" +end + if f.test("Hello") != "Hello" raise RuntimeError, "Failed" end