Refactor loading of scripts during testing, remove use of "arg" from error test script.

This commit is contained in:
James Roseborough
2012-09-08 22:04:56 +00:00
parent 7ae41da5e1
commit 8d1333c612
4 changed files with 92 additions and 70 deletions

View File

@@ -114,6 +114,7 @@ local function split(t)
end
local function expand(argsets, typesets, ...)
local arg = {...} ; arg.n = #arg
local n = typesets and #typesets or 0
if n <= 0 then
table.insert(argsets,arg)
@@ -155,7 +156,7 @@ local function subbanner(name)
end
local function pack(s,...)
return s,arg
return s,{...}
end
-- check that all combinations of arguments pass