fixed test case: dynamic_casts, exception_partial_info, li_std_string, size_t
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9636 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6ffd26cc1e
commit
e545d7b957
6 changed files with 77 additions and 10 deletions
12
Examples/test-suite/lua/exception_partial_info_runme.lua
Normal file
12
Examples/test-suite/lua/exception_partial_info_runme.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
require("import") -- the import fn
|
||||
import("exception_partial_info") -- import code
|
||||
|
||||
-- catch "undefined" global variables
|
||||
setmetatable(getfenv(),{__index=function (t,i) error("undefined global variable `"..i.."'",2) end})
|
||||
|
||||
imp=exception_partial_info.Impl()
|
||||
|
||||
-- trying to call throwing methods
|
||||
-- should fail
|
||||
assert(pcall(function() imp:f1() end)==false)
|
||||
assert(pcall(function() imp:f2() end)==false)
|
||||
Loading…
Add table
Add a link
Reference in a new issue