diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-23 16:15:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-23 16:15:13 +0800 |
commit | 366d163edf1373ca4f7c56ef44b77b818d9ee4f8 (patch) | |
tree | 768aef8f9a8c2f6c8dc046a019dd43a9a3d1e299 /test | |
parent | 1e7e9eba031eadfb5045a7fec01ee8519a967be6 (diff) | |
download | lua-language-server-366d163edf1373ca4f7c56ef44b77b818d9ee4f8.zip |
fix #567
Diffstat (limited to 'test')
-rw-r--r-- | test/crossfile/definition.lua | 15 | ||||
-rw-r--r-- | test/full/projects.lua | 2 | ||||
-rw-r--r-- | test/type_inference/init.lua | 4 |
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?>() +]] |