aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro+github@gmail.com>2017-11-09 02:20:12 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-11-09 02:20:12 +0100
commit9837a9c40105d3d28fc99d62693e47b32cec0f06 (patch)
tree524028d934e5c9a78e404a42c987b7f6a32d1be5 /test
parent55d8967147efbf1d0f3e2b5e13677ca4af9e2be4 (diff)
downloadrneovim-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.lua7
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)