aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/json_functions_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/eval/json_functions_spec.lua')
-rw-r--r--test/functional/eval/json_functions_spec.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/eval/json_functions_spec.lua b/test/functional/eval/json_functions_spec.lua
index 131b177622..59dbb804e4 100644
--- a/test/functional/eval/json_functions_spec.lua
+++ b/test/functional/eval/json_functions_spec.lua
@@ -10,6 +10,7 @@ local exc_exec = helpers.exc_exec
describe('json_decode() function', function()
local restart = function(cmd)
clear(cmd)
+ execute('language C')
execute([[
function Eq(exp, act)
let act = a:act
@@ -449,7 +450,10 @@ describe('json_decode() function', function()
end)
describe('json_encode() function', function()
- before_each(clear)
+ before_each(function()
+ clear()
+ execute('language C')
+ end)
it('dumps strings', function()
eq('"Test"', funcs.json_encode('Test'))