aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-10-30 01:48:32 +0300
committerZyX <kp-pav@yandex.ru>2017-11-06 01:17:37 +0300
commit3ecb95298ffd9ef6ee681876f2d32553fd222b96 (patch)
tree0085994aa9e95957abef84f84a6b29714a31d53c /test/helpers.lua
parent0356dbbb36ffa7934c35e9dbfc6667f9118c244f (diff)
downloadrneovim-3ecb95298ffd9ef6ee681876f2d32553fd222b96.tar.gz
rneovim-3ecb95298ffd9ef6ee681876f2d32553fd222b96.tar.bz2
rneovim-3ecb95298ffd9ef6ee681876f2d32553fd222b96.zip
tests: Fix testlint errors
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index 83e78ba059..10f2f80191 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -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