diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-04 14:12:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-04 14:12:02 +0800 |
commit | 2584309c9bb6de817ab1f785945a02bfe98b3e45 (patch) | |
tree | 1ae8d8911c29110590ed0b92275aca300f45e1c5 | |
parent | f35ed0a44400f422822aeb882784592db5a48633 (diff) | |
download | lua-language-server-2584309c9bb6de817ab1f785945a02bfe98b3e45.zip |
过大部分测试
-rw-r--r-- | test-beta/crossfile/definition.lua | 70 | ||||
-rw-r--r-- | test-beta/crossfile/hover.lua | 9 | ||||
-rw-r--r-- | test-beta/signature/init.lua | 2 |
3 files changed, 39 insertions, 42 deletions
diff --git a/test-beta/crossfile/definition.lua b/test-beta/crossfile/definition.lua index 99e1d7f2..743325c2 100644 --- a/test-beta/crossfile/definition.lua +++ b/test-beta/crossfile/definition.lua @@ -558,38 +558,38 @@ TEST { }, } ---TEST { --- { --- path = 'a.lua', --- content = [[ --- ---@class Class --- local <!obj!> --- ]] --- }, --- { --- path = 'b.lua', --- content = [[ --- ---@type Class --- local <!obj!> --- <?obj?> --- ]] --- }, ---} - ---TEST { --- { --- path = 'a.lua', --- content = [[ --- ---@type Class --- local <!obj!> --- <?obj?> --- ]] --- }, --- { --- path = 'b.lua', --- content = [[ --- ---@class Class --- local <!obj!> --- ]] --- }, ---} +TEST { + { + path = 'a.lua', + content = [[ + ---@class Class + local <!obj!> + ]] + }, + { + path = 'b.lua', + content = [[ + ---@type Class + local <!obj!> + <?obj?> + ]] + }, +} + +TEST { + { + path = 'a.lua', + content = [[ + ---@type Class + local <!obj!> + <?obj?> + ]] + }, + { + path = 'b.lua', + content = [[ + ---@class Class + local <!obj!> + ]] + }, +} diff --git a/test-beta/crossfile/hover.lua b/test-beta/crossfile/hover.lua index 3400de08..8cd5eada 100644 --- a/test-beta/crossfile/hover.lua +++ b/test-beta/crossfile/hover.lua @@ -253,8 +253,6 @@ local t: { }, } --- 先屏蔽掉 emmy -do return end TEST { { path = 'a.lua', @@ -271,7 +269,7 @@ TEST { hover = { label = [[function f(x: number)]], name = 'f', - description = 'abc', + description = ' abc', args = EXISTS, } } @@ -289,12 +287,13 @@ TEST { ]], }, hover = { - label = [[global x: number = 1]], + label = [[global x: integer = 1]], name = 'x', - description = 'abc', + description = ' abc', } } +do return end TEST { { path = 'a.lua', diff --git a/test-beta/signature/init.lua b/test-beta/signature/init.lua index 56fa21d1..ee89bb3d 100644 --- a/test-beta/signature/init.lua +++ b/test-beta/signature/init.lua @@ -144,7 +144,6 @@ table.unpack {$} ]] (nil) -do return end TEST [[ ---@type fun(x: number, y: number):boolean local zzzz @@ -153,7 +152,6 @@ zzzz($) { label = [[ function zzzz(x: number, y: number) - -> boolean ]], arg = {15, 23}, } |