summaryrefslogtreecommitdiff
path: root/test/type_inference/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-01 20:00:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-01 20:00:22 +0800
commit71e3ff51d3fb21f3e78a3948809ce4ae92613de2 (patch)
tree936752e4377a48281cd4b1752b53bcda1352d0bb /test/type_inference/init.lua
parent8077e3e08f2dd799ef9b5335005f1bf85d6340cd (diff)
downloadlua-language-server-71e3ff51d3fb21f3e78a3948809ce4ae92613de2.zip
cleanup
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r--test/type_inference/init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 1d52ecc8..6aefd1f4 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -748,25 +748,25 @@ TEST 'function' [[
string.gsub():gsub():<?gsub?>()
]]
-config.Lua.hover.enumsLimit = 5
+config.set('Lua.hover.enumsLimit', 5)
TEST 'a|b|c|d|e...(+5)' [[
---@type 'a'|'b'|'c'|'d'|'e'|'f'|'g'|'h'|'i'|'j'
local <?t?>
]]
-config.Lua.hover.enumsLimit = 1
+config.set('Lua.hover.enumsLimit', 1)
TEST 'a...(+9)' [[
---@type 'a'|'b'|'c'|'d'|'e'|'f'|'g'|'h'|'i'|'j'
local <?t?>
]]
-config.Lua.hover.enumsLimit = 0
+config.set('Lua.hover.enumsLimit', 0)
TEST '...(+10)' [[
---@type 'a'|'b'|'c'|'d'|'e'|'f'|'g'|'h'|'i'|'j'
local <?t?>
]]
-config.Lua.hover.enumsLimit = 5
+config.set('Lua.hover.enumsLimit', 5)
TEST 'string|fun():string' [[
---@type string | fun(): string