mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
functests: Make sure that json functions are tested with C messages
This commit is contained in:
@@ -10,6 +10,7 @@ local exc_exec = helpers.exc_exec
|
|||||||
describe('json_decode() function', function()
|
describe('json_decode() function', function()
|
||||||
local restart = function(cmd)
|
local restart = function(cmd)
|
||||||
clear(cmd)
|
clear(cmd)
|
||||||
|
execute('language C')
|
||||||
execute([[
|
execute([[
|
||||||
function Eq(exp, act)
|
function Eq(exp, act)
|
||||||
let act = a:act
|
let act = a:act
|
||||||
@@ -449,7 +450,10 @@ describe('json_decode() function', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
describe('json_encode() function', function()
|
describe('json_encode() function', function()
|
||||||
before_each(clear)
|
before_each(function()
|
||||||
|
clear()
|
||||||
|
execute('language C')
|
||||||
|
end)
|
||||||
|
|
||||||
it('dumps strings', function()
|
it('dumps strings', function()
|
||||||
eq('"Test"', funcs.json_encode('Test'))
|
eq('"Test"', funcs.json_encode('Test'))
|
||||||
|
Reference in New Issue
Block a user