diff options
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/crossfile/hover.lua | 14 | ||||
-rw-r--r-- | server/test/signature/init.lua | 30 |
2 files changed, 21 insertions, 23 deletions
diff --git a/server/test/crossfile/hover.lua b/server/test/crossfile/hover.lua index dc6df615..b0e5a55f 100644 --- a/server/test/crossfile/hover.lua +++ b/server/test/crossfile/hover.lua @@ -123,7 +123,7 @@ TEST { label = 'function f(a: any, b: any)', name = 'f', args = EXISTS, - title = EXISTS, + argStr = EXISTS, returns = EXISTS, } } @@ -147,7 +147,7 @@ TEST { label = 'function (a: any, b: any)', name = '', args = EXISTS, - title = EXISTS, + argStr = EXISTS, returns = EXISTS, } } @@ -179,7 +179,7 @@ TEST { label = 'function mt:add(a: any, b: any)', name = 'mt:add', args = EXISTS, - title = EXISTS, + argStr = EXISTS, returns = EXISTS, }, } @@ -251,7 +251,7 @@ TEST { name = 'f', description = 'abc', args = EXISTS, - title = EXISTS, + argStr = EXISTS, returns = EXISTS, } } @@ -294,7 +294,7 @@ TEST { name = 'f', args = EXISTS, rawEnum = EXISTS, - title = EXISTS, + argStr = EXISTS, returns = EXISTS, enum = [[ @@ -324,7 +324,7 @@ TEST { name = 'f', args = EXISTS, rawEnum = EXISTS, - title = EXISTS, + argStr = EXISTS, returns = EXISTS, enum = [[ @@ -351,7 +351,7 @@ TEST { label = 'function f(x: string, y: string)', name = 'f', args = EXISTS, - title = EXISTS, + argStr = EXISTS, returns = EXISTS, description = [[ + `x`*(string)*: aaaa 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 [[ |