aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-05-21 01:06:31 +0200
committerGitHub <noreply@github.com>2019-05-21 01:06:31 +0200
commitca1ce590257c35426aeeaac349317d2cb163cd2e (patch)
tree04f75eccd24174f4723274a7505874d822363b9a /test/unit/helpers.lua
parentb9ba1295b466a440600b36a717c701bfcea53dbc (diff)
parent5b04a4fa09e0ee09678aec23b1d0233e7c25e3e6 (diff)
downloadrneovim-ca1ce590257c35426aeeaac349317d2cb163cd2e.tar.gz
rneovim-ca1ce590257c35426aeeaac349317d2cb163cd2e.tar.bz2
rneovim-ca1ce590257c35426aeeaac349317d2cb163cd2e.zip
Merge #9709 'fileio: use os_copy to create backups'
ref #8288
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r--test/unit/helpers.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua
index e634b7296e..b5d3dd9f47 100644
--- a/test/unit/helpers.lua
+++ b/test/unit/helpers.lua
@@ -15,6 +15,7 @@ local dedent = global_helpers.dedent
local neq = global_helpers.neq
local map = global_helpers.map
local eq = global_helpers.eq
+local trim = global_helpers.trim
-- C constants.
local NULL = ffi.cast('void*', 0)
@@ -119,10 +120,6 @@ local deinit = only_separate(function()
end
end)
-local function trim(s)
- return s:match('^%s*(.*%S)') or ''
-end
-
-- a Set that keeps around the lines we've already seen
local cdefs_init = Set:new()
local cdefs_mod = nil