summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-10 02:53:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-10 02:53:51 +0800
commit88b155930b1fe6a8cf086c55ea3b108c8b1f0e73 (patch)
tree71e85682ebded8ec0448461d182a207b8f42d629 /test/completion
parent06d0640c3b408474337be76ae50ef36fe29bfdc0 (diff)
downloadlua-language-server-88b155930b1fe6a8cf086c55ea3b108c8b1f0e73.zip
fix repeated docname
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/common.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index 0d00ddf9..5ee2b844 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -3292,3 +3292,22 @@ local t = x[<??>]
assert(res.label ~= 'do')
end
end)
+
+TEST [[
+---@class ZZZZZ.XXXX
+---@class ZZZZZ.XXXX
+---@class ZZZZZ.XXXX
+---@class ZZZZZ.XXXX
+---@class ZZZZZ.XXXX
+
+---@type <??>
+]]
+(function (results)
+ local count = 0
+ for _, res in ipairs(results) do
+ if res.label == 'ZZZZZ.XXXX' then
+ count = count + 1
+ end
+ end
+ assert(count == 1)
+end)