diff options
author | Jakob Schnitzer <mail@jakobschnitzer.de> | 2017-03-27 19:50:04 +0200 |
---|---|---|
committer | Jakob Schnitzer <mail@jakobschnitzer.de> | 2017-03-30 23:04:54 +0200 |
commit | 44f039a1c8bf1a3111825f2d3385730e31536d9a (patch) | |
tree | 1cbe41d830cd7ae63705b079444c72b99f3a0f36 /test/functional/options/num_options_spec.lua | |
parent | 2290a7a1b1f8ea3c04365667b751fdfff62b43f5 (diff) | |
download | rneovim-44f039a1c8bf1a3111825f2d3385730e31536d9a.tar.gz rneovim-44f039a1c8bf1a3111825f2d3385730e31536d9a.tar.bz2 rneovim-44f039a1c8bf1a3111825f2d3385730e31536d9a.zip |
options: fix setglobal for buf-local number options
Diffstat (limited to 'test/functional/options/num_options_spec.lua')
-rw-r--r-- | test/functional/options/num_options_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/options/num_options_spec.lua b/test/functional/options/num_options_spec.lua index c37bbeffc3..9b66d4f862 100644 --- a/test/functional/options/num_options_spec.lua +++ b/test/functional/options/num_options_spec.lua @@ -11,10 +11,10 @@ end local function should_fail(opt, value, errmsg) execute('let v:errmsg = ""') execute('setglobal ' .. opt .. '=' .. value) - eq(errmsg, eval("v:errmsg"):match("E%d*:")) + eq(errmsg, eval("v:errmsg"):match("E%d*")) execute('let v:errmsg = ""') execute('setlocal ' .. opt .. '=' .. value) - eq(errmsg, eval("v:errmsg"):match("E%d*:")) + eq(errmsg, eval("v:errmsg"):match("E%d*")) execute('let v:errmsg = ""') end @@ -37,6 +37,6 @@ describe(':set validation', function() it('setlocal and setglobal validate values', function() should_fail('shiftwidth', -10, 'E487') should_fail('tabstop', -10, 'E487') - should_fail('winheight', -10, 'E487') + should_fail('winheight', -10, 'E591') end) end) |