summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-20 16:11:43 +0800
committersumneko <sumneko@hotmail.com>2019-05-20 16:11:43 +0800
commite4599d0c05868e54ae57a709c360e48e91532dd5 (patch)
treefa5801c0b88a7c516e08709cb704296042ba8160 /server/test
parent17b4a4562d8ddfdb87b65f5eaca7cde3d04915ef (diff)
downloadlua-language-server-e4599d0c05868e54ae57a709c360e48e91532dd5.zip
这个测试只能在windows平台里跑
Diffstat (limited to 'server/test')
-rw-r--r--server/test/crossfile/completion.lua60
1 files changed, 30 insertions, 30 deletions
diff --git a/server/test/crossfile/completion.lua b/server/test/crossfile/completion.lua
index ee57963f..8d1ff48d 100644
--- a/server/test/crossfile/completion.lua
+++ b/server/test/crossfile/completion.lua
@@ -162,6 +162,36 @@ TEST {
}
}
+TEST {
+ {
+ path = 'abc.lua',
+ content = '',
+ },
+ {
+ path = 'ABCD.lua',
+ content = '',
+ },
+ {
+ path = 'test.lua',
+ content = 'require "a$"',
+ main = true,
+ },
+ completion = {
+ {
+ label = 'ABCD',
+ kind = CompletionItemKind.Reference,
+ documentation = 'ABCD.lua',
+ textEdit = EXISTS,
+ },
+ {
+ label = 'abc',
+ kind = CompletionItemKind.Reference,
+ documentation = 'abc.lua',
+ textEdit = EXISTS,
+ },
+ }
+}
+
else
TEST {
@@ -360,36 +390,6 @@ TEST {
TEST {
{
- path = 'abc.lua',
- content = '',
- },
- {
- path = 'ABCD.lua',
- content = '',
- },
- {
- path = 'test.lua',
- content = 'require "a$"',
- main = true,
- },
- completion = {
- {
- label = 'ABCD',
- kind = CompletionItemKind.Reference,
- documentation = 'ABCD.lua',
- textEdit = EXISTS,
- },
- {
- label = 'abc',
- kind = CompletionItemKind.Reference,
- documentation = 'abc.lua',
- textEdit = EXISTS,
- },
- }
-}
-
-TEST {
- {
path = 'a.lua',
content = [[
return {