diff options
author | Marco Hinz <mh.codebro+github@gmail.com> | 2017-11-09 02:20:12 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-11-09 02:20:12 +0100 |
commit | 9837a9c40105d3d28fc99d62693e47b32cec0f06 (patch) | |
tree | 524028d934e5c9a78e404a42c987b7f6a32d1be5 /test | |
parent | 55d8967147efbf1d0f3e2b5e13677ca4af9e2be4 (diff) | |
download | rneovim-9837a9c40105d3d28fc99d62693e47b32cec0f06.tar.gz rneovim-9837a9c40105d3d28fc99d62693e47b32cec0f06.tar.bz2 rneovim-9837a9c40105d3d28fc99d62693e47b32cec0f06.zip |
compat: "v:count" distinct from "count" (#7407)
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/eval/special_vars_spec.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/eval/special_vars_spec.lua b/test/functional/eval/special_vars_spec.lua index 3d9358447e..b5773a5529 100644 --- a/test/functional/eval/special_vars_spec.lua +++ b/test/functional/eval/special_vars_spec.lua @@ -168,4 +168,11 @@ describe('Special values', function() 'Expected True but got v:null', }, meths.get_vvar('errors')) end) + + describe('compat', function() + it('v:count is distinct from count', function() + command('let count = []') -- v:count is readonly + eq(1, eval('count is# g:["count"]')) + end) + end) end) |