mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +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(1, eval('dumped ==# dumped2'))
|
||||
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)
|
||||
|
||||
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])'))
|
||||
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()
|
||||
execute('let Todump = function("tr")')
|
||||
eq('Vim(call):E951: Error while dumping msgpackdump() argument, index 0, itself: attempt to dump function reference',
|
||||
|
Reference in New Issue
Block a user