neovim/test/functional/lua
Christian Clason 3a88113246 fix(lua): revert vim.tbl_extend behavior change and document it
Problem: vim.tbl_deep_extend had an undocumented feature where arrays
(integer-indexed tables) were not merged but compared literally (used
for merging default and user config, where one list should overwrite the
other completely). Turns out this behavior was relied on in quite a
number of plugins (even though it wasn't a robust solution even for that
use case, since lists of tables (e.g., plugin specs) can be array-like
as well).

Solution: Revert the removal of this special feature. Check for
list-like (contiguous integer indices) instead, as this is closer to the
intent. Document this behavior.
2024-09-08 21:06:13 +02:00
..
api_spec.lua test: allow exec_lua to handle functions 2024-08-02 19:04:37 +01:00
base64_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
buffer_updates_spec.lua test: allow exec_lua to handle functions 2024-08-02 19:04:37 +01:00
command_line_completion_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
commands_spec.lua test: allow exec_lua to handle functions 2024-08-02 19:04:37 +01:00
comment_spec.lua fix(comment): fall back to using trimmed comment markers (#28938) 2024-05-23 15:30:53 -05:00
diagnostic_spec.lua test: allow exec_lua to handle functions 2024-08-02 19:04:37 +01:00
ffi_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
filetype_spec.lua test: allow exec_lua to handle functions 2024-08-02 19:04:37 +01:00
fs_spec.lua test: allow exec_lua to handle functions 2024-08-02 19:04:37 +01:00
glob_spec.lua test: allow exec_lua to handle functions 2024-08-02 19:04:37 +01:00
highlight_spec.lua feat: get/set namespace properties #28728 2024-06-07 08:33:40 -07:00
inspector_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
iter_spec.lua fix(vim.iter): enable optimizations for arrays (lists with holes) (#28781) 2024-05-17 14:17:25 -05:00
json_spec.lua fix(vim.json): properly treat luanil options as booleans (#28622) 2024-05-03 19:26:56 +08:00
loader_spec.lua test: tmpname() can skip file creation 2024-09-02 20:19:50 +02:00
loop_spec.lua fix(lua): vim.fn.has('nvim-0.10') in fast context, used by vim.deprecate 2024-04-25 08:37:18 +02:00
luaeval_spec.lua refactor(tests): again yet more global highlight definitions 2024-08-14 14:03:34 +02:00
mpack_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
overrides_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
runtime_spec.lua feat(ftplugin): change 'commentstring' to // %s for C/C++ (#29085) 2024-06-03 09:48:43 +02:00
secure_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
snippet_spec.lua fix(snippet): modify base indentation when there's actually whitespace (#29670) 2024-07-16 19:30:22 +02:00
spell_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
system_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
text_spec.lua fix(vim.text): handle very long strings (#30075) 2024-08-17 22:28:03 -05:00
thread_spec.lua refactor(tests): again yet more global highlight definitions 2024-08-14 14:03:34 +02:00
ui_event_spec.lua fix(ui): flush ext_cmdline events before doing cmdpreview #27950 2024-05-28 02:43:56 -07:00
ui_spec.lua fix(vim.ui)!: change open() to return result|nil, errmsg|nil #28612 2024-05-03 03:20:03 -07:00
uri_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00
version_spec.lua fix(version): return nil with empty string 2024-07-27 14:06:31 +01:00
vim_spec.lua fix(lua): revert vim.tbl_extend behavior change and document it 2024-09-08 21:06:13 +02:00
watch_spec.lua test: tmpname(create:boolean) #30242 2024-09-03 02:18:17 -07:00
with_spec.lua feat(lua): add context.env (environment variables) to vim._with() 2024-06-24 20:23:11 +03:00
xdiff_spec.lua test: improve test conventions 2024-04-23 18:17:04 +02:00