summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-23 16:15:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-23 16:15:13 +0800
commit366d163edf1373ca4f7c56ef44b77b818d9ee4f8 (patch)
tree768aef8f9a8c2f6c8dc046a019dd43a9a3d1e299 /test
parent1e7e9eba031eadfb5045a7fec01ee8519a967be6 (diff)
downloadlua-language-server-366d163edf1373ca4f7c56ef44b77b818d9ee4f8.zip
fix #567
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/definition.lua15
-rw-r--r--test/full/projects.lua2
-rw-r--r--test/type_inference/init.lua4
3 files changed, 20 insertions, 1 deletions
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua
index 467e6af5..d1b613cc 100644
--- a/test/crossfile/definition.lua
+++ b/test/crossfile/definition.lua
@@ -771,3 +771,18 @@ TEST {
},
}
config.config.runtime.path = originRuntimePath
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ a = b.x
+ ]],
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ b = a.<?x?>
+ ]],
+ },
+}
diff --git a/test/full/projects.lua b/test/full/projects.lua
index 84a20c0d..b2e6d3cc 100644
--- a/test/full/projects.lua
+++ b/test/full/projects.lua
@@ -25,7 +25,7 @@ local function doProjects(pathname)
local uri = furi.encode(path:string())
local text = fsu.loadFile(path)
files.setText(uri, text)
- --files.open(uri)
+ files.open(uri)
end)
print('开始诊断...')
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 7a968972..7d5ea44f 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -742,3 +742,7 @@ local <?test?> = Rct.new(Rct)
return test
]]
+
+TEST 'function' [[
+string.gsub():gsub():<?gsub?>()
+]]