Add out of bounds Ruby std::vector and std::array access testing

Also fix swig_assert_equal to work with nil as an expected input
This commit is contained in:
William S Fulton 2015-11-22 11:13:37 +00:00
commit 97b129de6c
3 changed files with 14 additions and 0 deletions

View file

@ -22,6 +22,8 @@ end
# msg - optional additional message to print
#
def swig_assert_equal( a, b, scope = nil, msg = nil )
a = 'nil' if a == nil
b = 'nil' if b == nil
begin
check = "#{a} == #{b}"
if scope.kind_of? Binding