mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
test: API: fix tests after improved error capture
This commit is contained in:
@@ -15,6 +15,7 @@ local curwinmeths = helpers.curwinmeths
|
||||
local curtabmeths = helpers.curtabmeths
|
||||
local get_pathsep = helpers.get_pathsep
|
||||
local rmdir = helpers.rmdir
|
||||
local expect_err = helpers.expect_err
|
||||
|
||||
local fname = 'Xtest-functional-eval-buf_functions'
|
||||
local fname2 = fname .. '.2'
|
||||
@@ -296,8 +297,8 @@ describe('setbufvar() function', function()
|
||||
eq('Vim(call):E461: Illegal variable name: b:',
|
||||
exc_exec('call setbufvar(1, "", 0)'))
|
||||
eq(true, bufmeths.get_var(buf1, 'number'))
|
||||
funcs.setbufvar(1, 'changedtick', true)
|
||||
-- eq(true, bufmeths.get_var(buf1, 'changedtick'))
|
||||
expect_err('Vim:E46: Cannot change read%-only variable "b:changedtick"',
|
||||
funcs.setbufvar, 1, 'changedtick', true)
|
||||
eq(2, funcs.getbufvar(1, 'changedtick'))
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user