From b725f6b4287d800f22bce32f32022ad07aa2610e Mon Sep 17 00:00:00 2001 From: ZyX Date: Mon, 7 Mar 2016 07:18:29 +0300 Subject: functests: Make sure that json functions are tested with C messages --- test/functional/eval/json_functions_spec.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/functional/eval/json_functions_spec.lua') 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')) -- cgit