Add table argument type check tests.

This commit is contained in:
James Roseborough
2008-07-16 20:04:44 +00:00
parent ec3feacc30
commit 953daeb907
2 changed files with 53 additions and 1 deletions

View File

@@ -198,7 +198,7 @@ function checkallerrors( name, typesets, template )
local sig = signature(name,v)
local s,e = invoke( name, v )
if not s then
if string.match(e, template) then
if string.find(e, template, 1, true) then
print( ok, sig, '...'..template..'...' )
else
print( badmsg, sig, "template='"..template.."' actual='"..e.."'" )