mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
functests(msgpack): Fix location of one of the tests
This commit is contained in:
@@ -382,6 +382,11 @@ describe('msgpack*() functions', function()
|
|||||||
eq({"\n"}, eval('parsed'))
|
eq({"\n"}, eval('parsed'))
|
||||||
eq(1, eval('dumped ==# dumped2'))
|
eq(1, eval('dumped ==# dumped2'))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('dump and restore special mapping with floating-point value', function()
|
||||||
|
execute('let todump = {"_TYPE": v:msgpack_types.float, "_VAL": 0.125}')
|
||||||
|
eq({0.125}, eval('msgpackparse(msgpackdump([todump]))'))
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
describe('msgpackparse() function', function()
|
describe('msgpackparse() function', function()
|
||||||
@@ -534,11 +539,6 @@ describe('msgpackdump() function', function()
|
|||||||
eq({'\211\128\n\n\n\n\n\n\n'}, eval('msgpackdump([todump])'))
|
eq({'\211\128\n\n\n\n\n\n\n'}, eval('msgpackdump([todump])'))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('dump and restore special mapping with floating-point value', function()
|
|
||||||
execute('let todump = {"_TYPE": v:msgpack_types.float, "_VAL": 0.125}')
|
|
||||||
eq({0.125}, eval('msgpackparse(msgpackdump([todump]))'))
|
|
||||||
end)
|
|
||||||
|
|
||||||
it('fails to dump a function reference', function()
|
it('fails to dump a function reference', function()
|
||||||
execute('let Todump = function("tr")')
|
execute('let Todump = function("tr")')
|
||||||
eq('Vim(call):E951: Error while dumping msgpackdump() argument, index 0, itself: attempt to dump function reference',
|
eq('Vim(call):E951: Error while dumping msgpackdump() argument, index 0, itself: attempt to dump function reference',
|
||||||
|
Reference in New Issue
Block a user