neovim/test/functional/lua
Gregory Anders 6b96122453 fix(iter): add tag to packed table
If pack() is called with a single value, it does not create a table; it
simply returns the value it is passed. When unpack is called with a
table argument, it interprets that table as a list of values that were
packed together into a table.

This causes a problem when the single value being packed is _itself_ a
table. pack() will not place it into another table, but unpack() sees
the table argument and tries to unpack it.

To fix this, we add a simple "tag" to packed table values so that
unpack() only attempts to unpack tables that have this tag. Other tables
are left alone. The tag is simply the length of the table.
2023-04-19 07:04:49 -06:00
..
api_spec.lua vim-patch:8.2.2857: Vim9: exception in ISN_INSTR caught at wrong level (#23131) 2023-04-16 18:27:33 +08:00
buffer_updates_spec.lua test: replace lfs with luv and vim.fs 2023-04-04 21:59:06 +02:00
command_line_completion_spec.lua feat(lua): omnifunc for builting lua interpreter 2023-03-06 23:12:21 +01:00
commands_spec.lua feat(lua): allow :=expr as a shorter version of :lua =expr 2023-03-22 09:10:04 +01:00
diagnostic_spec.lua feat(diagnostic): specify diagnostic virtual text prefix as a function 2023-04-17 12:53:34 +01:00
ffi_spec.lua refactor: remove char_u (#22829) 2023-04-02 16:11:42 +08:00
filetype_spec.lua feat: add vim.filetype.get_option() 2023-03-20 10:06:32 +00:00
fs_spec.lua test(vim.fs.normalize): enable test on Windows 2023-04-05 23:56:33 +02:00
help_spec.lua test(help): drop treesitter parse error to 0 2023-02-23 10:24:15 +01:00
highlight_spec.lua fix(lua): highlight.on_yank can close timer in twice #18976 2022-06-15 19:39:55 -07:00
inspector_spec.lua fix(lua): inspect_pos respect bufnr when get syntax info (#23098) 2023-04-16 17:50:32 +08:00
json_spec.lua test: add tests for vim.json 2021-09-26 11:52:17 -07:00
loader_spec.lua fix(loader): reset hashes when running the loader 2023-04-13 17:34:47 +01:00
loop_spec.lua feat(lua): enable stack traces in error output (#16228) 2021-11-06 08:26:10 -06:00
luaeval_spec.lua vim-patch:8.2.2857: Vim9: exception in ISN_INSTR caught at wrong level (#23131) 2023-04-16 18:27:33 +08:00
mpack_spec.lua fix(vim.mpack): rename pack/unpack => encode/decode #16175 2021-10-30 06:59:59 -07:00
overrides_spec.lua feat(lua): make sure require'bit' always works, even with PUC lua 5.1 2023-02-22 22:15:19 +01:00
runtime_spec.lua fix(spell): properly source spell/LANG.{vim,lua} (#22716) 2023-03-18 09:55:08 +08:00
secure_spec.lua test: make {MATCH:} behave less unexpectedly in screen:expect() 2023-02-18 10:44:35 +08:00
spell_spec.lua feat(test): add Lua forms for API methods (#20152) 2022-11-14 10:01:35 +00:00
thread_spec.lua feat(test): add Lua forms for API methods (#20152) 2022-11-14 10:01:35 +00:00
ui_event_spec.lua test: make expect_unchanged() less confusing (#22255) 2023-02-15 07:26:55 +08:00
ui_spec.lua test(lua/ui_spec): fix Ctrl-C test flakiness (#21039) 2022-11-13 08:16:06 +08:00
uri_spec.lua test: simplify platform detection (#21020) 2022-11-22 08:13:30 +08:00
version_spec.lua fix(vim.version): prerelease compare 2023-03-22 17:46:01 +01:00
vim_spec.lua fix(iter): add tag to packed table 2023-04-19 07:04:49 -06:00
watch_spec.lua fix(watchfiles): skip Created events when poll starts (#23139) 2023-04-17 18:50:05 +02:00
xdiff_spec.lua feat(test): add Lua forms for API methods (#20152) 2022-11-14 10:01:35 +00:00