diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-19 11:57:15 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-19 11:57:15 +0800 |
commit | 2d4218934c136dd11fd0accd61a08e9da88627d9 (patch) | |
tree | cf282e6c123b74ad21c1e10cbf2d511f462a3fb2 /test | |
parent | e85f89361d4699e7d03064cd45fcad3002b5128b (diff) | |
download | lua-language-server-2d4218934c136dd11fd0accd61a08e9da88627d9.zip |
fix tests
Diffstat (limited to 'test')
-rw-r--r-- | test/hover/init.lua | 24 | ||||
-rw-r--r-- | test/type_inference/init.lua | 4 |
2 files changed, 14 insertions, 14 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 17406762..27cc62ee 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -504,7 +504,7 @@ TEST [[ print(<?utf8?>) ]] [[ -global utf8: utf8* { +global utf8: utf8lib { char: function, charpattern: string, codepoint: function, @@ -533,7 +533,7 @@ TEST [[ print(<?io?>) ]] [[ -global io: io* { +global io: iolib { close: function, flush: function, input: function, @@ -555,7 +555,7 @@ TEST [[ local <?sssss?> = require 'utf8' ]] [[ -local sssss: utf8* { +local sssss: utf8lib { char: function, charpattern: string, codepoint: function, @@ -804,22 +804,22 @@ global _G: _G { arg: table, assert: function, collectgarbage: function, - coroutine: coroutine*, - debug: debug*, + coroutine: coroutinelib, + debug: debuglib, dofile: function, error: function, getfenv: function, getmetatable: function, - io: io*, + io: iolib, ipairs: function, load: function, loadfile: function, loadstring: function, - math: math*, + math: mathlib, module: function, next: function, - os: os*, - package: package*, + os: oslib, + package: packagelib, pairs: function, pcall: function, print: function, @@ -831,13 +831,13 @@ global _G: _G { select: function, setfenv: function, setmetatable: function, - string: string*, - table: table*, + string: stringlib, + table: tablelib, tonumber: function, tostring: function, type: function, unpack: function, - utf8: utf8*, + utf8: utf8lib, warn: function, xpcall: function, } diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 3de5bd6e..5760af26 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -139,7 +139,7 @@ TEST 'number' [[ <?x?> = a + b ]] -TEST 'table*' [[ +TEST 'tablelib' [[ <?table?>() ]] @@ -200,7 +200,7 @@ end _, <?y?> = pcall(x) ]] -TEST 'os*' [[ +TEST 'oslib' [[ local <?os?> = require 'os' ]] |