diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-05-10 19:18:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-10 19:18:58 +0200 |
commit | 8d40b3617c8bb10af5d4d4abcab0dfe77a4e807d (patch) | |
tree | cded38835bde85bc8a1682303617f84bf2549f7e /test/functional/eval/buf_functions_spec.lua | |
parent | 1cd8517344c0d99ca6fb3246c70f78d271993cf6 (diff) | |
parent | 966e7abc4960746b4dde618807fb5516d162ae2d (diff) | |
download | rneovim-8d40b3617c8bb10af5d4d4abcab0dfe77a4e807d.tar.gz rneovim-8d40b3617c8bb10af5d4d4abcab0dfe77a4e807d.tar.bz2 rneovim-8d40b3617c8bb10af5d4d4abcab0dfe77a4e807d.zip |
Merge #8371 'API: more reliable/descriptive VimL errors'
Diffstat (limited to 'test/functional/eval/buf_functions_spec.lua')
-rw-r--r-- | test/functional/eval/buf_functions_spec.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/eval/buf_functions_spec.lua b/test/functional/eval/buf_functions_spec.lua index 7de58766b9..c0e264d4c9 100644 --- a/test/functional/eval/buf_functions_spec.lua +++ b/test/functional/eval/buf_functions_spec.lua @@ -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) |