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:
parent
fe09f05beb
commit
97b129de6c
3 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue