Improve argument type check tests.

This commit is contained in:
James Roseborough
2008-07-17 01:23:33 +00:00
parent 02cffe8a58
commit a18c16dabb
6 changed files with 112 additions and 165 deletions

View File

@@ -23,7 +23,7 @@ checkallerrors('package.seeall',{notatable},'bad argument')
-- module (last because it pretty much breaks this chunk)
print( pcall( function()
banner('module')
checkallpass('module',{somestrnum,{package.seeall},{nil,afunction}})
checkallpass('module',{somenumber,{package.seeall},{nil,afunction}})
checkallerrors('module',{{aboolean,atable,afunction}},'bad argument')
checkallerrors('module',{{aboolean,atable,afunction},{package.seeall}},'bad argument')
checkallerrors('module',{somestring,{astring,anumber,aboolean,atable}},'attempt to call a')