tests: Fix testlint errors

This commit is contained in:
ZyX
2017-10-30 01:48:32 +03:00
parent 0356dbbb36
commit 3ecb95298f
6 changed files with 12 additions and 20 deletions

View File

@@ -376,8 +376,8 @@ local function format_string(fmt, ...)
return args[i]
end
local ret = fmt:gsub('%%[0-9*]*%.?[0-9*]*[cdEefgGiouXxqsr%%]', function(match)
local subfmt = match:gsub('%*', function(match)
return getarg()
local subfmt = match:gsub('%*', function()
return tostring(getarg())
end)
local arg = nil
if subfmt:sub(-1) ~= '%' then