summaryrefslogtreecommitdiff
path: root/Examples/test-suite/ruby
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2019-12-23 07:29:11 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2019-12-30 23:52:02 +0000
commit558f0ba485702d2c2146640e345ba39da3847deb (patch)
tree0d79e9a4461a73284959d6d7c027cd10405102de /Examples/test-suite/ruby
parentd53a54b4f7b051a3fa0fdfe52fdebd0d9b7c881a (diff)
downloadswig-558f0ba485702d2c2146640e345ba39da3847deb.tar.gz
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.
Diffstat (limited to 'Examples/test-suite/ruby')
-rw-r--r--Examples/test-suite/ruby/global_immutable_vars_cpp_runme.rb1
-rw-r--r--Examples/test-suite/ruby/global_immutable_vars_runme.rb1
-rw-r--r--Examples/test-suite/ruby/ruby_global_immutable_vars_cpp_runme.rb1
-rw-r--r--Examples/test-suite/ruby/ruby_global_immutable_vars_runme.rb1
4 files changed, 4 insertions, 0 deletions
diff --git a/Examples/test-suite/ruby/global_immutable_vars_cpp_runme.rb b/Examples/test-suite/ruby/global_immutable_vars_cpp_runme.rb
index c40896a86..7897f7da5 100644
--- a/Examples/test-suite/ruby/global_immutable_vars_cpp_runme.rb
+++ b/Examples/test-suite/ruby/global_immutable_vars_cpp_runme.rb
@@ -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")
diff --git a/Examples/test-suite/ruby/global_immutable_vars_runme.rb b/Examples/test-suite/ruby/global_immutable_vars_runme.rb
index af55cfeb3..ffbea270f 100644
--- a/Examples/test-suite/ruby/global_immutable_vars_runme.rb
+++ b/Examples/test-suite/ruby/global_immutable_vars_runme.rb
@@ -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")
diff --git a/Examples/test-suite/ruby/ruby_global_immutable_vars_cpp_runme.rb b/Examples/test-suite/ruby/ruby_global_immutable_vars_cpp_runme.rb
index 8453254eb..5523b59f4 100644
--- a/Examples/test-suite/ruby/ruby_global_immutable_vars_cpp_runme.rb
+++ b/Examples/test-suite/ruby/ruby_global_immutable_vars_cpp_runme.rb
@@ -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")
diff --git a/Examples/test-suite/ruby/ruby_global_immutable_vars_runme.rb b/Examples/test-suite/ruby/ruby_global_immutable_vars_runme.rb
index fda1ccf0f..45a8506ba 100644
--- a/Examples/test-suite/ruby/ruby_global_immutable_vars_runme.rb
+++ b/Examples/test-suite/ruby/ruby_global_immutable_vars_runme.rb
@@ -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")