aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/commands_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2020-09-12 19:04:22 -0700
committerTJ DeVries <devries.timothyj@gmail.com>2020-10-05 09:47:59 -0400
commit8e77d70e29f936f4e708ee3244046188b8ad0383 (patch)
treede9bfa3d5704cf9cfb92fc9a50157718d940b518 /test/functional/lua/commands_spec.lua
parentaad7a74053e16611de04da4151e3e3be50746e3d (diff)
downloadrneovim-8e77d70e29f936f4e708ee3244046188b8ad0383.tar.gz
rneovim-8e77d70e29f936f4e708ee3244046188b8ad0383.tar.bz2
rneovim-8e77d70e29f936f4e708ee3244046188b8ad0383.zip
test/vim.validate(): assert normalized stacktrace
- The previous commit lost information in the tests. Instead, add some more "normalization" substitutions in pcall_err(), so that the general shape of the stacktrace is included in the asserted text. - Eliminate contains(), it is redundant with matches()
Diffstat (limited to 'test/functional/lua/commands_spec.lua')
-rw-r--r--test/functional/lua/commands_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/lua/commands_spec.lua b/test/functional/lua/commands_spec.lua
index cbc3aee557..f2a1b7dede 100644
--- a/test/functional/lua/commands_spec.lua
+++ b/test/functional/lua/commands_spec.lua
@@ -43,7 +43,7 @@ describe(':lua command', function()
eq({'', 'ETTS', 'TTSE', 'STTE'}, curbufmeths.get_lines(0, 100, false))
end)
it('throws catchable errors', function()
- eq([[Vim(lua):E5107: Error loading lua [string ":lua"]:1: unexpected symbol near ')']],
+ eq([[Vim(lua):E5107: Error loading lua [string ":lua"]:0: unexpected symbol near ')']],
pcall_err(command, 'lua ()'))
eq([[Vim(lua):E5108: Error executing lua [string ":lua"]:1: TEST]],
exc_exec('lua error("TEST")'))