mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
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()
This commit is contained in:
committed by
TJ DeVries
parent
aad7a74053
commit
8e77d70e29
@@ -59,7 +59,7 @@ describe('floatwin', function()
|
||||
end)
|
||||
|
||||
it('closed immediately by autocmd #11383', function()
|
||||
eq('Error executing lua: [string "<nvim>"]:4: Window was closed immediately',
|
||||
eq('Error executing lua: [string "<nvim>"]:0: Window was closed immediately',
|
||||
pcall_err(exec_lua, [[
|
||||
local a = vim.api
|
||||
local function crashes(contents)
|
||||
|
||||
Reference in New Issue
Block a user