aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-11-24 19:36:04 +0100
committerGitHub <noreply@github.com>2018-11-24 19:36:04 +0100
commit8b39e4ec793334be0e48101830f66e05691393bd (patch)
tree40d9b5b3fee2829baf8c3ab5fa38cf8d0629d7ce /test
parent108566e7b6f1b331dac8e339280c230bf39c137d (diff)
parent01dbf0951b25d582451a8e656731dcf3d9295a71 (diff)
downloadrneovim-8b39e4ec793334be0e48101830f66e05691393bd.tar.gz
rneovim-8b39e4ec793334be0e48101830f66e05691393bd.tar.bz2
rneovim-8b39e4ec793334be0e48101830f66e05691393bd.zip
Merge pull request #6920 from bfredl/namespace
make namespaces explicit (intitially for bufhl and virttext)
Diffstat (limited to 'test')
-rw-r--r--test/functional/api/vim_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua
index a9d137391e..dde4dab7ac 100644
--- a/test/functional/api/vim_spec.lua
+++ b/test/functional/api/vim_spec.lua
@@ -1269,4 +1269,16 @@ describe('API', function()
end)
end)
+ describe('nvim_create_namespace', function()
+ it('works', function()
+ eq({}, meths.get_namespaces())
+ eq(1, meths.create_namespace("ns-1"))
+ eq(2, meths.create_namespace("ns-2"))
+ eq(1, meths.create_namespace("ns-1"))
+ eq({["ns-1"]=1, ["ns-2"]=2}, meths.get_namespaces())
+ eq(3, meths.create_namespace(""))
+ eq(4, meths.create_namespace(""))
+ eq({["ns-1"]=1, ["ns-2"]=2}, meths.get_namespaces())
+ end)
+ end)
end)