aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/vim_spec.lua
diff options
context:
space:
mode:
authorYi Ming <ofseed@foxmail.com>2026-05-11 15:42:24 +0800
committerYi Ming <ofseed@foxmail.com>2026-05-11 16:51:58 +0800
commitfd51fb3fa0356d0f8eef7630e085c8f0b3964c69 (patch)
tree548d079ce94bca038bb18904a18c2c47c6aec5ed /test/functional/lua/vim_spec.lua
parenteb79cf5aeeb1d407b9da8f0d39c83cf23fbdaf29 (diff)
downloadrneovim-fd51fb3fa0356d0f8eef7630e085c8f0b3964c69.tar.gz
rneovim-fd51fb3fa0356d0f8eef7630e085c8f0b3964c69.tar.bz2
rneovim-fd51fb3fa0356d0f8eef7630e085c8f0b3964c69.zip
refactor!: remove deprecated APIs
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
-rw-r--r--test/functional/lua/vim_spec.lua23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua
index 4d896b9558..e1afb8d521 100644
--- a/test/functional/lua/vim_spec.lua
+++ b/test/functional/lua/vim_spec.lua
@@ -1315,29 +1315,6 @@ describe('lua stdlib', function()
eq({ 2 }, exec_lua [[ return vim.list_extend({}, {2;a=1}, -1, 2) ]])
end)
- it('vim.tbl_add_reverse_lookup', function()
- eq(
- true,
- exec_lua [[
- local a = { A = 1 }
- vim.tbl_add_reverse_lookup(a)
- return vim.deep_equal(a, { A = 1; [1] = 'A'; })
- ]]
- )
- -- Throw an error for trying to do it twice (run into an existing key)
- local code = [[
- local res = {}
- local a = { A = 1 }
- vim.tbl_add_reverse_lookup(a)
- assert(vim.deep_equal(a, { A = 1; [1] = 'A'; }))
- vim.tbl_add_reverse_lookup(a)
- ]]
- matches(
- 'The reverse lookup found an existing value for "[1A]" while processing key "[1A]"$',
- pcall_err(exec_lua, code)
- )
- end)
-
it('vim.spairs', function()
local res = ''
local table = {