diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-09-07 09:41:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-07 09:41:02 -0700 |
commit | 5ddf2ab7684b799073f2b9c0240692f250bc7c02 (patch) | |
tree | e855975f1e145312f90afd516f76711d3b636e1e /test/functional/lua/vim_spec.lua | |
parent | 3d1110674ec330138ad6675f828673ca32575d4b (diff) | |
download | rneovim-5ddf2ab7684b799073f2b9c0240692f250bc7c02.tar.gz rneovim-5ddf2ab7684b799073f2b9c0240692f250bc7c02.tar.bz2 rneovim-5ddf2ab7684b799073f2b9c0240692f250bc7c02.zip |
test(lua): tbl_deep_extend "after second argument" #30297
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
-rw-r--r-- | test/functional/lua/vim_spec.lua | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua index 7bba24483e..7f10dcd8da 100644 --- a/test/functional/lua/vim_spec.lua +++ b/test/functional/lua/vim_spec.lua @@ -1079,34 +1079,21 @@ describe('lua stdlib', function() return vim.deep_equal(c, { sub = { [1] = 'a', b = 'a' } }) ]])) - matches( - 'invalid "behavior": nil', - pcall_err( - exec_lua, - [[ - return vim.tbl_deep_extend() - ]] - ) - ) + matches('invalid "behavior": nil', pcall_err(exec_lua, [[return vim.tbl_deep_extend()]])) matches( 'wrong number of arguments %(given 1, expected at least 3%)', - pcall_err( - exec_lua, - [[ - return vim.tbl_deep_extend("keep") - ]] - ) + pcall_err(exec_lua, [[return vim.tbl_deep_extend("keep")]]) ) matches( 'wrong number of arguments %(given 2, expected at least 3%)', - pcall_err( - exec_lua, - [[ - return vim.tbl_deep_extend("keep", {}) - ]] - ) + pcall_err(exec_lua, [[return vim.tbl_deep_extend("keep", {})]]) + ) + + matches( + 'after the second argument%: expected table, got number', + pcall_err(exec_lua, [[return vim.tbl_deep_extend("keep", {}, 42)]]) ) end) |