From cab9a993d55acdf1e91288fae5312ba1744cb14d Mon Sep 17 00:00:00 2001 From: Simon Marchetto Date: Thu, 27 Mar 2014 10:27:12 +0100 Subject: [PATCH] scilab: implement return_const_value test --- .../test-suite/scilab/return_const_value_runme.sci | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Examples/test-suite/scilab/return_const_value_runme.sci diff --git a/Examples/test-suite/scilab/return_const_value_runme.sci b/Examples/test-suite/scilab/return_const_value_runme.sci new file mode 100644 index 000000000..662bf3625 --- /dev/null +++ b/Examples/test-suite/scilab/return_const_value_runme.sci @@ -0,0 +1,11 @@ +exec("swigtest.start", -1); + +foo_ptr = Foo_ptr_getPtr(); +foo = Foo_ptr___deref__(foo_ptr); +checkequal(Foo_getVal(foo), 17, "Foo_getVal(p)"); + +foo_ptr = Foo_ptr_getConstPtr(); +foo = Foo_ptr___deref__(foo_ptr); +checkequal(Foo_getVal(foo), 17, "Foo_getVal(p)"); + +exec("swigtest.quit", -1);