diff options
author | James McCoy <jamessan@jamessan.com> | 2016-11-16 21:17:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-16 21:17:21 -0500 |
commit | 927e3e32d78460eb8031bda3304c9ea1f9ef855e (patch) | |
tree | 158e48cdaa336c5837d4af455357d19fdb76f9de /test/functional/shada/errors_spec.lua | |
parent | 5e241b5f50833afd920d37fa8b2bb24a30827406 (diff) | |
parent | 44e6ee930fff5bf42178e5555b4a7c3467cb66c8 (diff) | |
download | rneovim-927e3e32d78460eb8031bda3304c9ea1f9ef855e.tar.gz rneovim-927e3e32d78460eb8031bda3304c9ea1f9ef855e.tar.bz2 rneovim-927e3e32d78460eb8031bda3304c9ea1f9ef855e.zip |
Merge pull request #5623 from justinmk/luacheck
build: Target luacheck HEAD.
Diffstat (limited to 'test/functional/shada/errors_spec.lua')
-rw-r--r-- | test/functional/shada/errors_spec.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/functional/shada/errors_spec.lua b/test/functional/shada/errors_spec.lua index 19f35571d7..2b6b26b433 100644 --- a/test/functional/shada/errors_spec.lua +++ b/test/functional/shada/errors_spec.lua @@ -17,9 +17,9 @@ describe('ShaDa error handling', function() clean() end) - -- Note: most of tests have additional items like sX, mX, rX. These are for - -- valgrind tests, to check for memory leaks (i.e. whether error handling code - -- does (not) forget to call ga_clear). Not needed for array-based items like + -- Note: most of tests have additional items like sX, mX, rX. These are for + -- valgrind tests, to check for memory leaks (i.e. whether error handling code + -- does (not) forget to call ga_clear). Not needed for array-based items like -- history because they are not using ad_ga. it('does not fail on empty file', function() @@ -69,15 +69,15 @@ describe('ShaDa error handling', function() end) it('fails on search pattern item with invalid byte', function() - -- 195 (== 0xC1) cannot start any valid messagepack entry (the only byte + -- 195 (== 0xC1) cannot start any valid messagepack entry (the only byte -- that cannot do this). Specifically unpack_template.h contains -- -- //case 0xc1: // string -- // again_terminal_trail(NEXT_CS(p), p+1); -- - -- (literally: commented out code) which means that in place of this code - -- `goto _failed` is used from default: case. I do not know any other way to - -- get MSGPACK_UNPACK_PARSE_ERROR and not MSGPACK_UNPACK_CONTINUE or + -- (literally: commented out code) which means that in place of this code + -- `goto _failed` is used from default: case. I do not know any other way to + -- get MSGPACK_UNPACK_PARSE_ERROR and not MSGPACK_UNPACK_CONTINUE or -- MSGPACK_UNPACK_EXTRA_BYTES. wshada('\002\000\001\193') eq('Vim(rshada):E576: Failed to parse ShaDa file due to a msgpack parser error at position 3', exc_exec(sdrcmd())) |