diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/completion/common.lua | 19 |
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) |