aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-07-23 03:18:10 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-07-23 03:18:10 +0200
commit2000b6a64a9c1fe47d07d8441620abceaf545094 (patch)
treef622935d39e546f7ac4a66148b3ae5b9af622e53 /test
parentcdbfdcfcc484340f89a0bf3bd2e97dcf95f15625 (diff)
parent03bd5a4b91f4b555be9fc44b7fab6a64923667c8 (diff)
downloadrneovim-2000b6a64a9c1fe47d07d8441620abceaf545094.tar.gz
rneovim-2000b6a64a9c1fe47d07d8441620abceaf545094.tar.bz2
rneovim-2000b6a64a9c1fe47d07d8441620abceaf545094.zip
Merge #8589 'VimL: Remove legacy v:xx aliases'
Diffstat (limited to 'test')
-rw-r--r--test/functional/eval/special_vars_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/eval/special_vars_spec.lua b/test/functional/eval/special_vars_spec.lua
index b5773a5529..97a12d490d 100644
--- a/test/functional/eval/special_vars_spec.lua
+++ b/test/functional/eval/special_vars_spec.lua
@@ -174,5 +174,17 @@ describe('Special values', function()
command('let count = []') -- v:count is readonly
eq(1, eval('count is# g:["count"]'))
end)
+ it('v:errmsg is distinct from errmsg', function()
+ command('let errmsg = 1')
+ eq(1, eval('errmsg is# g:["errmsg"]'))
+ end)
+ it('v:shell_error is distinct from shell_error', function()
+ command('let shell_error = []') -- v:shell_error is readonly
+ eq(1, eval('shell_error is# g:["shell_error"]'))
+ end)
+ it('v:this_session is distinct from this_session', function()
+ command('let this_session = []')
+ eq(1, eval('this_session is# g:["this_session"]'))
+ end)
end)
end)