aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-03-07 07:18:29 +0300
committerZyX <kp-pav@yandex.ru>2016-04-18 02:48:20 +0300
commitb725f6b4287d800f22bce32f32022ad07aa2610e (patch)
tree621ec42a457a6e7b6527d71f0eb8895bc90e0193
parent4eb5d05f018bc568580c85f17ddb304fcec364ca (diff)
downloadrneovim-b725f6b4287d800f22bce32f32022ad07aa2610e.tar.gz
rneovim-b725f6b4287d800f22bce32f32022ad07aa2610e.tar.bz2
rneovim-b725f6b4287d800f22bce32f32022ad07aa2610e.zip
functests: Make sure that json functions are tested with C messages
-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'))