Ruby globalmodule variables test enhancement

Check that the variables values are as expected in C++.
Note that the check_values global function is global in Ruby when
using -globalmodule.
This commit is contained in:
William S Fulton 2019-12-23 07:29:11 +00:00
commit 558f0ba485
8 changed files with 40 additions and 0 deletions

View file

@ -45,3 +45,4 @@ end
swig_assert(had_exception, nil,
"Global_immutable_vars_cpp::specific_immutable_var is writable (expected to be immutable)")
swig_assert(Global_immutable_vars_cpp::check_values(80, 41, 82, 83, 44) == 1, nil, "Check values failed")

View file

@ -49,3 +49,4 @@ end
swig_assert(had_exception, nil,
"Global_immutable_vars::specific_immutable_var is writable (expected to be immutable)")
swig_assert(Global_immutable_vars::check_values(80, 41, 82, 83, 44) == 1, nil, "Check values failed")

View file

@ -45,3 +45,4 @@ end
swig_assert(had_exception, nil,
"$specific_immutable_var is writable (expected to be immutable)")
swig_assert(check_values(80, 41, 82, 83, 44) == 1, nil, "Check values failed")

View file

@ -49,3 +49,4 @@ end
swig_assert(had_exception, nil,
"$specific_immutable_var is writable (expected to be immutable)")
swig_assert(check_values(80, 41, 82, 83, 44) == 1, nil, "Check values failed")