aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/vim_spec.lua
diff options
context:
space:
mode:
authorMaria José Solano <majosolano99@gmail.com>2025-05-04 16:28:03 -0500
committerGitHub <noreply@github.com>2025-05-04 14:28:03 -0700
commitdf345503ebae919f27649ffd273043de24442ffb (patch)
tree8f3597a52ccce0812c596f572819e8eb4674991b /test/functional/lua/vim_spec.lua
parent0402f5a76b69e6108ee56951c1fa0ddaaa6f9c20 (diff)
downloadrneovim-df345503ebae919f27649ffd273043de24442ffb.tar.gz
rneovim-df345503ebae919f27649ffd273043de24442ffb.tar.bz2
rneovim-df345503ebae919f27649ffd273043de24442ffb.zip
refactor(lua): swap value params in `tbl_extend` behavior callback #33847
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
-rw-r--r--test/functional/lua/vim_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua
index 420d894635..f9cd051d1f 100644
--- a/test/functional/lua/vim_spec.lua
+++ b/test/functional/lua/vim_spec.lua
@@ -1040,7 +1040,7 @@ describe('lua stdlib', function()
local a = { a = 1, b = 2, c = 1 }
local b = { a = -1, b = 5, c = 3, d = 4 }
-- Return the maximum value for each key.
- local c = vim.tbl_extend(function(k, v, prev_v)
+ local c = vim.tbl_extend(function(k, prev_v, v)
if prev_v then
return v > prev_v and v or prev_v
else
@@ -1195,7 +1195,7 @@ describe('lua stdlib', function()
local a = { a = 1, b = 2, c = { d = 1, e = -2} }
local b = { a = -1, b = 5, c = { d = 6 } }
-- Return the maximum value for each key.
- local c = vim.tbl_deep_extend(function(k, v, prev_v)
+ local c = vim.tbl_deep_extend(function(k, prev_v, v)
if prev_v then
return v > prev_v and v or prev_v
else