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:
Gonzalo Garramuno 2007-04-28 15:54:50 +00:00
commit bbee2e374c
6 changed files with 13 additions and 15 deletions

View file

@ -29,7 +29,7 @@ rescue TypeError
# TypeError: allocator undefined for Abstract_inherit::Foo
exceptionRaised = true
ensure
raise RuntimeError unless exceptionRaised
swig_assert( exceptionRaised, "exceptionRaised")
end
exceptionRaised = false
@ -42,7 +42,7 @@ rescue TypeError
# TypeError: allocator undefined for Abstract_inherit::Bar
exceptionRaised = true
ensure
raise RuntimeError unless exceptionRaised
swig_assert( exceptionRaised, "exceptionRaised")
end
exceptionRaised = false
@ -55,6 +55,7 @@ rescue TypeError
# TypeError: allocator undefined for Abstract_inherit::Spam
exceptionRaised = true
ensure
raise RuntimeError unless exceptionRaised
swig_assert( exceptionRaised, "exceptionRaised")
end