summaryrefslogtreecommitdiff
path: root/server-beta/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-19 21:10:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-19 21:10:55 +0800
commit3958723467b8ddb62e471c01c1bb38950ec3c28f (patch)
tree08dd3a8bdaf87a230327b8e0ddd09343bb0ed058 /server-beta/test
parent5d7bcc1fabcc97afd1151e3d49a22aedb0832659 (diff)
downloadlua-language-server-3958723467b8ddb62e471c01c1bb38950ec3c28f.zip
暂存
Diffstat (limited to 'server-beta/test')
-rw-r--r--server-beta/test/type_inference/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server-beta/test/type_inference/init.lua b/server-beta/test/type_inference/init.lua
index 4a9f30aa..fd98e544 100644
--- a/server-beta/test/type_inference/init.lua
+++ b/server-beta/test/type_inference/init.lua
@@ -30,7 +30,7 @@ function TEST(wanted)
files.setText('', newScript)
local source = getSource(pos)
assert(source)
- local result = searcher.typeInference(source) or 'any'
+ local result = searcher.getValue(source) or 'any'
assert(wanted == result)
end
end
@@ -113,7 +113,7 @@ TEST 'integer' [[
<?x?> = ~ y
]]
-TEST 'number' [[
+TEST 'integer' [[
local a = true
local b = 1
<?x?> = a and b