From fd51fb3fa0356d0f8eef7630e085c8f0b3964c69 Mon Sep 17 00:00:00 2001 From: Yi Ming Date: Mon, 11 May 2026 15:42:24 +0800 Subject: refactor!: remove deprecated APIs --- test/functional/lua/vim_spec.lua | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'test/functional/lua/vim_spec.lua') 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 = { -- cgit