From 4cb9c12ca12e3ce6e254897cc1a72f651bd9fdf8 Mon Sep 17 00:00:00 2001 From: sumneko Date: Tue, 16 Apr 2019 16:36:52 +0800 Subject: =?UTF-8?q?Windows=E5=B9=B3=E5=8F=B0=E4=B9=9F=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E7=9A=84=E5=8E=9F=E5=A7=8B=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/crossfile/completion.lua | 58 ++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) (limited to 'server/test') 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', @@ -354,6 +356,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', -- cgit v1.2.3