diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-06-26 12:19:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-06-26 12:19:22 +0800 |
commit | 1232c5c8b661b845123944ad73f8027071f69cdf (patch) | |
tree | 4eb618348940932e0037728ee9379e0549d2eb51 /server | |
parent | 64003fd62f6ab2e373bcbf74e87be905505a1045 (diff) | |
download | lua-language-server-1232c5c8b661b845123944ad73f8027071f69cdf.zip |
补个测试
Diffstat (limited to 'server')
-rw-r--r-- | server/test/crossfile/hover.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/server/test/crossfile/hover.lua b/server/test/crossfile/hover.lua index f2dcd443..6941edb8 100644 --- a/server/test/crossfile/hover.lua +++ b/server/test/crossfile/hover.lua @@ -220,3 +220,23 @@ global t: { name = 't', }, } + +TEST { + { + path = 'a.lua', + content = '', + }, + { + path = 'b.lua', + content = [[ + --- abc + ---@param x number + function <?f?>(x) end + ]], + }, + hover = { + label = [[function f(x: number)]], + name = 'f', + description = 'abc', + } +} |