diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-07 20:06:45 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-07 20:06:45 +0800 |
commit | a80d62baf3568e42ffa796509a2056dd9021c462 (patch) | |
tree | ebdbff6bda538d728e797e4c48ddb15c8e74db61 /server-beta/test | |
parent | 0f4da273013ed0b311debefb8824c47d8be7e58f (diff) | |
download | lua-language-server-a80d62baf3568e42ffa796509a2056dd9021c462.zip |
诊断测试完成
Diffstat (limited to 'server-beta/test')
-rw-r--r-- | server-beta/test/diagnostics/init.lua | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/server-beta/test/diagnostics/init.lua b/server-beta/test/diagnostics/init.lua index 2bb99323..ac76371d 100644 --- a/server-beta/test/diagnostics/init.lua +++ b/server-beta/test/diagnostics/init.lua @@ -203,6 +203,34 @@ print() ]] TEST [[ +return { + <!print + 'string'!> +} +]] + +TEST [[ +return { + <!print + { + x = 1, + }!> +} +]] + +TEST [[ +print() +'string' +]] + +TEST [[ +print +{ + x = 1, +} +]] + +TEST [[ local function x(a, b) return a, b end @@ -619,14 +647,7 @@ x = (x + y) or 0 TEST [[ local t = {} -function t:<!a!>() -end -function t:<!a!>() -end -]] - -TEST [[ -local t = {} t.a = 1 t.a = 2 +return t ]] |