diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-20 16:11:43 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-20 16:11:43 +0800 |
commit | e4599d0c05868e54ae57a709c360e48e91532dd5 (patch) | |
tree | fa5801c0b88a7c516e08709cb704296042ba8160 /server/test | |
parent | 17b4a4562d8ddfdb87b65f5eaca7cde3d04915ef (diff) | |
download | lua-language-server-e4599d0c05868e54ae57a709c360e48e91532dd5.zip |
这个测试只能在windows平台里跑
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/crossfile/completion.lua | 60 |
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 { |