aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2020-02-18 17:41:29 +0900
committerHirokazu Hata <h.hata.ai.t@gmail.com>2020-02-18 17:43:10 +0900
commite2ed8053bf722d4d111fac7dcdb07179fdea8752 (patch)
treef350874422f926114e15e2922ac2af34535fd039 /test/helpers.lua
parenta2efc9cf8b0fdf14b01156ba424145e1847f789c (diff)
downloadrneovim-e2ed8053bf722d4d111fac7dcdb07179fdea8752.tar.gz
rneovim-e2ed8053bf722d4d111fac7dcdb07179fdea8752.tar.bz2
rneovim-e2ed8053bf722d4d111fac7dcdb07179fdea8752.zip
lua: move test helper function, map and filter, to vim.shared module
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index 72b1bdcadd..40b93d9935 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -290,24 +290,6 @@ module.tmpname = (function()
end)
end)()
-function module.map(func, tab)
- local rettab = {}
- for k, v in pairs(tab) do
- rettab[k] = func(v)
- end
- return rettab
-end
-
-function module.filter(filter_func, tab)
- local rettab = {}
- for _, entry in pairs(tab) do
- if filter_func(entry) then
- table.insert(rettab, entry)
- end
- end
- return rettab
-end
-
function module.hasenv(name)
local env = os.getenv(name)
if env and env ~= '' then