summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/test/crossfile/definition.lua15
-rw-r--r--server/test/main.lua1
2 files changed, 16 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
+ ]],
+ },
+}
diff --git a/server/test/main.lua b/server/test/main.lua
index cb01ca1f..aacad3a4 100644
--- a/server/test/main.lua
+++ b/server/test/main.lua
@@ -11,6 +11,7 @@ package.path = (ROOT / 'src' / '?.lua'):string()
log = require 'log'
log.init(ROOT, ROOT / 'log' / 'test.log')
log.debug('测试开始')
+ac = {}
require 'utility'
require 'global_protect'