call the sanity_check function to check the C++ operators are implemented correctly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8272 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c80bfc55e6
commit
21e601d59f
2 changed files with 6 additions and 0 deletions
|
|
@ -4,6 +4,9 @@ import("operator_overload") -- import lib
|
|||
|
||||
for k,v in pairs(operator_overload) do _G[k]=v end -- move to global
|
||||
|
||||
-- first check all the operators are implemented correctly from pure C++ code
|
||||
Op_sanity_check()
|
||||
|
||||
-- catching undefined variables
|
||||
setmetatable(getfenv(),{__index=function (t,i) error("undefined global variable `"..i.."'",2) end})
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@ use operator_overload;
|
|||
|
||||
pass("loaded");
|
||||
|
||||
# first check all the operators are implemented correctly from pure C++ code
|
||||
operator_overloadc::Op_sanity_check();
|
||||
|
||||
my $op = operator_overload::Op->new();
|
||||
|
||||
isa_ok($op, "operator_overload::Op");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue