diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-26 12:20:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 12:20:19 +0800 |
commit | a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc (patch) | |
tree | c22f82a0c739a99729d3d07a2af228b31dacaf4e /test/functional/lua/vim_spec.lua | |
parent | 5d159a7faad913852c65c81dcc976cf4be902fc1 (diff) | |
parent | 519e4c44720be9b0c8584cb53a902bc1e5bfe3a3 (diff) | |
download | rneovim-a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc.tar.gz rneovim-a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc.tar.bz2 rneovim-a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc.zip |
Merge pull request #18267 from zeertzjq/test-eq-arg-order
test: correct order of arguments to eq() and neq()
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
-rw-r--r-- | test/functional/lua/vim_spec.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua index ae6a1d5765..d9a8dfd2e8 100644 --- a/test/functional/lua/vim_spec.lua +++ b/test/functional/lua/vim_spec.lua @@ -645,17 +645,17 @@ describe('lua stdlib', function() return vim.tbl_islist(c) and count == 0 ]])) - eq(exec_lua([[ + eq({a = {b = 1}}, exec_lua([[ local a = { a = { b = 1 } } local b = { a = {} } return vim.tbl_deep_extend("force", a, b) - ]]), {a = {b = 1}}) + ]])) - eq(exec_lua([[ + eq({a = {b = 1}}, exec_lua([[ local a = { a = 123 } local b = { a = { b = 1} } return vim.tbl_deep_extend("force", a, b) - ]]), {a = {b = 1}}) + ]])) ok(exec_lua([[ local a = { a = {[2] = 3} } @@ -664,11 +664,11 @@ describe('lua stdlib', function() return vim.deep_equal(c, {a = {[3] = 3}}) ]])) - eq(exec_lua([[ + eq({a = 123}, exec_lua([[ local a = { a = { b = 1} } local b = { a = 123 } return vim.tbl_deep_extend("force", a, b) - ]]), {a = 123 }) + ]])) matches('invalid "behavior": nil', pcall_err(exec_lua, [[ |