diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2018-06-19 08:50:15 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2018-07-23 08:47:51 +0900 |
commit | 03bd5a4b91f4b555be9fc44b7fab6a64923667c8 (patch) | |
tree | 45a86fdc35738ef86a642e5941400650f3b38565 /test | |
parent | 13d29cb9ed0d6fba734dc5a96ed543326ee14b3f (diff) | |
download | rneovim-03bd5a4b91f4b555be9fc44b7fab6a64923667c8.tar.gz rneovim-03bd5a4b91f4b555be9fc44b7fab6a64923667c8.tar.bz2 rneovim-03bd5a4b91f4b555be9fc44b7fab6a64923667c8.zip |
Make "v:errmsg", "v:shell_error" and "v:this_session" distinct
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/eval/special_vars_spec.lua | 12 |
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) |