diff options
author | Said Al Attrach <alattrach.said@yahoo.com> | 2019-03-30 18:14:20 +0100 |
---|---|---|
committer | Said Al Attrach <alattrach.said@yahoo.com> | 2019-03-30 18:14:20 +0100 |
commit | 2bf18e7843542dd4ba3bfaa3b09078401bfb6b7b (patch) | |
tree | 6ba61785950dc655ad3c6ec05907eeb5b85d5d3a /test/unit/helpers.lua | |
parent | a9df3fa5d2ee41b165b1e740fe27eddbf9dbf4a5 (diff) | |
download | rneovim-2bf18e7843542dd4ba3bfaa3b09078401bfb6b7b.tar.gz rneovim-2bf18e7843542dd4ba3bfaa3b09078401bfb6b7b.tar.bz2 rneovim-2bf18e7843542dd4ba3bfaa3b09078401bfb6b7b.zip |
test: move trim to global helpers
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r-- | test/unit/helpers.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index beb25f25db..1345fbce17 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -16,6 +16,7 @@ local neq = global_helpers.neq local map = global_helpers.map local eq = global_helpers.eq local ok = global_helpers.ok +local trim = global_helpers.trim -- C constants. local NULL = ffi.cast('void*', 0) @@ -120,10 +121,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 |