Updated some tests to use swig_assert.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9694 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5be075f16f
commit
bbee2e374c
6 changed files with 13 additions and 15 deletions
|
|
@ -8,7 +8,6 @@
|
|||
#
|
||||
|
||||
require 'swig_assert'
|
||||
|
||||
require 'abstract_signature'
|
||||
|
||||
include Abstract_signature
|
||||
|
|
@ -34,7 +33,7 @@ rescue TypeError
|
|||
# TypeError: allocator undefined for Abstract_signature::Abstract_foo
|
||||
exceptionRaised = true
|
||||
ensure
|
||||
raise RuntimeError unless exceptionRaised
|
||||
swig_assert( exceptionRaised, "for exceptionRaised")
|
||||
end
|
||||
|
||||
#
|
||||
|
|
@ -58,6 +57,6 @@ rescue TypeError
|
|||
# TypeError: allocator undefined for Abstract_signature::Abstract_bar
|
||||
exceptionRaised = true
|
||||
ensure
|
||||
raise RuntimeError unless exceptionRaised
|
||||
swig_assert( exceptionRaised, "for exceptionRaised")
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue