diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-16 16:36:52 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-16 16:36:52 +0800 |
commit | 4cb9c12ca12e3ce6e254897cc1a72f651bd9fdf8 (patch) | |
tree | 9195751e0a581d844a8d3efbefaae3a9c1494151 /server/test | |
parent | cafdbefc9bb4b1e70fbc7d1bb6d0e3b682395f36 (diff) | |
download | lua-language-server-4cb9c12ca12e3ce6e254897cc1a72f651bd9fdf8.zip |
Windows平台也使用路径的原始大小写
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/crossfile/completion.lua | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/server/test/crossfile/completion.lua b/server/test/crossfile/completion.lua index a55ff743..d150609e 100644 --- a/server/test/crossfile/completion.lua +++ b/server/test/crossfile/completion.lua @@ -126,6 +126,8 @@ function TEST(data) end end +require 'bee.platform'.OS = 'Windows' + TEST { { path = 'abc.lua', @@ -356,6 +358,62 @@ 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, + }, + } +} + +require 'bee.platform'.OS = 'Macos' + +TEST { + { + path = 'abc.lua', + content = '', + }, + { + path = 'ABCD.lua', + content = '', + }, + { + path = 'test.lua', + content = 'require "a@"', + main = true, + }, + completion = { + { + label = 'abc', + kind = CompletionItemKind.Reference, + documentation = 'abc.lua', + textEdit = EXISTS, + }, + } +} + +TEST { + { path = 'a.lua', content = [[ return { |