neovim/test/functional/lua
dundargoc e016f5bee6 test: reduce exec_lua calls
`exec_lua` makes code slighly harder to read, so it's beneficial to
remove it in cases where it's possible or convenient.

Not all `exec_lua` calls should be removed even if the test passes as it
changes the semantics of the test even if it happens to pass.

From https://github.com/neovim/neovim/pull/28155#discussion_r1548185779:

"Note for tests like this, which fundamentally are about conversion, you
end up changing what conversion you are testing. Even if the result
happens to be same (as they often are, as we like the rules to be
consistent if possible), you are now testing the RPC conversion rules
instead of the vim script to in-process lua conversion rules."

From https://github.com/neovim/neovim/pull/28155#discussion_r1548190152:

"A test like this specifies that the cursor is valid immediately and not
after a separate cycle of normal (or an other input-processing) mode."
2024-04-04 13:10:11 +02:00
..
api_spec.lua test: rename (meths, funcs) -> (api, fn) 2024-01-12 18:59:14 +00:00
base64_spec.lua refactor: format test/* 2024-01-03 02:09:29 +01:00
buffer_updates_spec.lua fix(extmarks): splice earlier when opening new line (#28108) 2024-03-30 08:05:36 +08:00
command_line_completion_spec.lua refactor: format test/* 2024-01-03 02:09:29 +01:00
commands_spec.lua feat(ex_cmds): no error on :lua with {range} and {code} (#27290) 2024-02-02 13:14:10 +08:00
diagnostic_spec.lua test: reduce exec_lua calls 2024-04-04 13:10:11 +02:00
ffi_spec.lua fix(api/buffer): fix handling of viewport of non-current buffer 2024-03-13 07:19:59 +01:00
filetype_spec.lua fix(filetype): use unexpanded file name (#27931) 2024-03-23 11:46:23 +08:00
fs_spec.lua fix: support UNC paths in vim.fs.normalize 2024-03-30 00:51:09 +01:00
glob_spec.lua refactor(lua): refactored glob 2024-01-19 11:54:04 +00:00
highlight_spec.lua fix(lua): make highlight.on_yank use win-local highlight (#27349) 2024-02-22 16:39:32 +08:00
inspector_spec.lua refactor: format test/* 2024-01-03 02:09:29 +01:00
iter_spec.lua fix(vim.iter): use correct cmp function when truncating tail in take (#27998) 2024-03-23 16:46:54 -05:00
json_spec.lua refactor: format test/* 2024-01-03 02:09:29 +01:00
loader_spec.lua fix(test): typing 2024-03-25 21:09:57 +00:00
loop_spec.lua test: rename (meths, funcs) -> (api, fn) 2024-01-12 18:59:14 +00:00
luaeval_spec.lua fix(eval): skip over v:lua properly (#27517) 2024-02-18 19:11:44 +08:00
mpack_spec.lua refactor: format test/* 2024-01-03 02:09:29 +01:00
overrides_spec.lua fix(test): typing 2024-03-25 21:09:57 +00:00
runtime_spec.lua test: rename (meths, funcs) -> (api, fn) 2024-01-12 18:59:14 +00:00
secure_spec.lua fix(test): typing 2024-03-25 21:09:57 +00:00
snippet_spec.lua fix(snippet): correct indent with newline 2024-03-01 14:35:52 +08:00
spell_spec.lua refactor: format test/* 2024-01-03 02:09:29 +01:00
system_spec.lua fix(vim.system): don't process non-fast events during wait() (#27300) 2024-02-02 21:52:01 +08:00
text_spec.lua refactor: format test/* 2024-01-03 02:09:29 +01:00
thread_spec.lua test: correct order of arguments to eq() (#27816) 2024-03-11 22:23:14 +08:00
ui_event_spec.lua test: rename (meths, funcs) -> (api, fn) 2024-01-12 18:59:14 +00:00
ui_spec.lua fix(vim.ui.open): use explorer.exe instead of wslview #26947 2024-02-20 09:14:50 -08:00
uri_spec.lua fix(lua): remove uri fragment from file paths (#27647) 2024-02-28 10:50:53 +01:00
version_spec.lua test: reduce exec_lua calls 2024-04-04 13:10:11 +02:00
vim_spec.lua feat(lua): pass keys before mapping to vim.on_key() callback (#28098) 2024-03-31 11:20:05 +08:00
watch_spec.lua test: skip another flaky test on macOS (#28087) 2024-03-29 06:26:01 +08:00
xdiff_spec.lua refactor(lua): use a keyset for vim.diff opts parsing 2024-02-13 11:54:44 +01:00