aboutsummaryrefslogtreecommitdiff
path: root/test/unit/eval/tricks_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-03-12 10:52:13 +0100
committerGitHub <noreply@github.com>2017-03-12 10:52:13 +0100
commitc8f0f8fea6e3170db0d68d61dd84f3c3ef9ee77c (patch)
treed993945c472a610a265baa79d714c6d32f149f14 /test/unit/eval/tricks_spec.lua
parentb2b15e6e137d7be2b01bf2174791f36bd12981bd (diff)
parent48e7a83447c0a1a59a110b5ca9e712f560fd9e03 (diff)
downloadrneovim-c8f0f8fea6e3170db0d68d61dd84f3c3ef9ee77c.tar.gz
rneovim-c8f0f8fea6e3170db0d68d61dd84f3c3ef9ee77c.tar.bz2
rneovim-c8f0f8fea6e3170db0d68d61dd84f3c3ef9ee77c.zip
Merge #6214 from ZyX-I/split-eval'/isolated-unittests
Run all unit tests in separate processes
Diffstat (limited to 'test/unit/eval/tricks_spec.lua')
-rw-r--r--test/unit/eval/tricks_spec.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/unit/eval/tricks_spec.lua b/test/unit/eval/tricks_spec.lua
index 4c5184995c..ec79a9cad5 100644
--- a/test/unit/eval/tricks_spec.lua
+++ b/test/unit/eval/tricks_spec.lua
@@ -1,4 +1,5 @@
-local helpers = require('test.unit.helpers')
+local helpers = require('test.unit.helpers')(after_each)
+local itp = helpers.gen_itp(it)
local cimport = helpers.cimport
local to_cstr = helpers.to_cstr
@@ -15,7 +16,7 @@ local eval_expr = function(expr)
end
describe('NULL typval_T', function()
- it('is produced by $XXX_UNEXISTENT_VAR_XXX', function()
+ itp('is produced by $XXX_UNEXISTENT_VAR_XXX', function()
-- Required for various tests which need to check whether typval_T with NULL
-- string works correctly. This test checks that unexistent environment
-- variable produces NULL string, not that some specific environment
@@ -29,13 +30,13 @@ describe('NULL typval_T', function()
eq(nil, rettv.vval.v_string)
end)
- it('is produced by v:_null_list', function()
+ itp('is produced by v:_null_list', function()
local rettv = eval_expr('v:_null_list')
eq(eval.VAR_LIST, rettv.v_type)
eq(nil, rettv.vval.v_list)
end)
- it('is produced by v:_null_dict', function()
+ itp('is produced by v:_null_dict', function()
local rettv = eval_expr('v:_null_dict')
eq(eval.VAR_DICT, rettv.v_type)
eq(nil, rettv.vval.v_dict)