aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-11-29 23:26:21 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-05-18 14:51:01 +0200
commit2b87485c22e2e42eba54d57454b33dca02f9d67c (patch)
tree15385805b9d9ecf75aba1eac29e04c75cd6f99d1 /test/unit/helpers.lua
parent8e22c4510eb9220f7ead6493fdcfdd7bf1f53d3b (diff)
downloadrneovim-2b87485c22e2e42eba54d57454b33dca02f9d67c.tar.gz
rneovim-2b87485c22e2e42eba54d57454b33dca02f9d67c.tar.bz2
rneovim-2b87485c22e2e42eba54d57454b33dca02f9d67c.zip
test: Extend {unit,functional}.helpers with global helpers
Automatically include all "global helper" util functions in the unit.helpers and functional.helpers and modules. So tests don't need to expicitly do: local global_helpers = require('test.helpers')
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 beb25f25db..c42eddf7f3 100644
--- a/test/unit/helpers.lua
+++ b/test/unit/helpers.lua
@@ -15,7 +15,6 @@ local dedent = global_helpers.dedent
local neq = global_helpers.neq
local map = global_helpers.map
local eq = global_helpers.eq
-local ok = global_helpers.ok
-- C constants.
local NULL = ffi.cast('void*', 0)
@@ -842,9 +841,6 @@ local module = {
cimport = cimport,
cppimport = cppimport,
internalize = internalize,
- ok = ok,
- eq = eq,
- neq = neq,
ffi = ffi,
lib = lib,
cstr = cstr,
@@ -869,6 +865,7 @@ local module = {
ptr2key = ptr2key,
debug_log = debug_log,
}
+module = global_helpers.map_extend('error', module, global_helpers)
return function()
return module
end