mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
fixed test 5.1 compatibility
This commit is contained in:
@@ -3,7 +3,8 @@ local argparse = require "argparse"
|
||||
describe("tests related to positional arguments", function()
|
||||
local function curry(f, ...)
|
||||
local args = {...}
|
||||
return function() return f(table.unpack(args)) end
|
||||
local unpack = unpack or table.unpack
|
||||
return function() return f(unpack(args)) end
|
||||
end
|
||||
|
||||
describe("passing correct arguments", function()
|
||||
|
@@ -3,7 +3,8 @@ local argparse = require "argparse"
|
||||
describe("tests related to options", function()
|
||||
local function curry(f, ...)
|
||||
local args = {...}
|
||||
return function() return f(table.unpack(args)) end
|
||||
local unpack = unpack or table.unpack
|
||||
return function() return f(unpack(args)) end
|
||||
end
|
||||
|
||||
describe("passing correct options", function()
|
||||
|
Reference in New Issue
Block a user