summaryrefslogtreecommitdiff
path: root/server/test/crossfile/definition.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-23 16:06:34 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-23 16:06:34 +0800
commitcbcb02406fc0f317af5bd575515e9881e4bd5a25 (patch)
tree9f720cdd3329b88f8c639794180fb5be7700002d /server/test/crossfile/definition.lua
parent5540352b5a3f71ff2e1830a77b34b220078f02ca (diff)
downloadlua-language-server-cbcb02406fc0f317af5bd575515e9881e4bd5a25.zip
怎么少了一个测试
Diffstat (limited to 'server/test/crossfile/definition.lua')
-rw-r--r--server/test/crossfile/definition.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/server/test/crossfile/definition.lua b/server/test/crossfile/definition.lua
index d34d6868..6ff0cf32 100644
--- a/server/test/crossfile/definition.lua
+++ b/server/test/crossfile/definition.lua
@@ -197,3 +197,18 @@ TEST {
]],
}
}
+
+TEST {
+ {
+ path = 'b.lua',
+ content = [[
+ print(<?global?>)
+ ]],
+ },
+ {
+ path = 'a.lua',
+ content = [[
+ <!global!> = 1
+ ]],
+ },
+}