diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-10-21 21:42:06 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-10-21 21:42:06 +0800 |
commit | 079847053a3020600a9fd0c35e12a9f7e8d57f16 (patch) | |
tree | a991917bef281a4ecab8356634c678292ea13128 /server/test/signature/init.lua | |
parent | 736373ad83a7505aa2f088c889c45a518695e571 (diff) | |
download | lua-language-server-079847053a3020600a9fd0c35e12a9f7e8d57f16.zip |
简化 signature
Diffstat (limited to 'server/test/signature/init.lua')
-rw-r--r-- | server/test/signature/init.lua | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/server/test/signature/init.lua b/server/test/signature/init.lua index a2a647e7..d5bc19c0 100644 --- a/server/test/signature/init.lua +++ b/server/test/signature/init.lua @@ -36,8 +36,8 @@ end x($ ]] { - label = "function x(a: any, b: any)", - arg = {12, 17}, + label = "x(a: any, b: any)", + arg = {3, 8}, } TEST [[ @@ -47,8 +47,8 @@ end x($) ]] { - label = "function x(a: any, b: any)", - arg = {12, 17}, + label = "x(a: any, b: any)", + arg = {3, 8}, } TEST [[ @@ -58,8 +58,8 @@ end x(xxx$) ]] { - label = "function x(a: any, b: any)", - arg = {12, 17}, + label = "x(a: any, b: any)", + arg = {3, 8}, } TEST [[ @@ -69,8 +69,8 @@ end x(xxx, $) ]] { - label = "function x(a: any, b: any)", - arg = {20, 25}, + label = "x(a: any, b: any)", + arg = {11, 16}, } TEST [[ @@ -80,8 +80,8 @@ end mt:f($ ]] { - label = 'function mt:f(a: any)', - arg = {15, 20}, + label = 'mt:f(a: any)', + arg = {6, 11}, } TEST [[ @@ -89,10 +89,9 @@ TEST [[ ]] { label = [[ -function *string:sub(i: integer [, j: integer(-1)]) - -> string +*string:sub(i: integer [, j: integer(-1)]) ]], - arg = {22, 31}, + arg = {13, 22}, } TEST [[ @@ -125,10 +124,9 @@ zzzz($) ]] { label = [[ -function zzzz(x: number, y: number) - -> boolean +zzzz(x: number, y: number) ]], - arg = {15, 23}, + arg = {6, 14}, } TEST [[ |