diff options
author | ZyX <kp-pav@yandex.ru> | 2016-01-30 21:54:57 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-04-18 02:44:03 +0300 |
commit | c3efad5398da01fcdb0fd40822bedff4957c7797 (patch) | |
tree | e593c09e3d616b07b006466bc58019b54f1cd361 /test/functional/eval/msgpack_functions_spec.lua | |
parent | f21cb425fbae47713fd524bfad98fcbc229b1971 (diff) | |
download | rneovim-c3efad5398da01fcdb0fd40822bedff4957c7797.tar.gz rneovim-c3efad5398da01fcdb0fd40822bedff4957c7797.tar.bz2 rneovim-c3efad5398da01fcdb0fd40822bedff4957c7797.zip |
functests(msgpack): Fix location of one of the tests
Diffstat (limited to 'test/functional/eval/msgpack_functions_spec.lua')
-rw-r--r-- | test/functional/eval/msgpack_functions_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/eval/msgpack_functions_spec.lua b/test/functional/eval/msgpack_functions_spec.lua index 0443424c0d..fc0aad7902 100644 --- a/test/functional/eval/msgpack_functions_spec.lua +++ b/test/functional/eval/msgpack_functions_spec.lua @@ -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', |