diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-08-28 12:10:37 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-08-28 12:10:44 +0800 |
commit | 6c296cea1e58968818154f3935715ae437166004 (patch) | |
tree | 794ce02855edb9df9936eab1c77064ded7a61e99 /server/test/main.lua | |
parent | 54499ea20645e83af25312895ab4fc4a9d964a59 (diff) | |
download | lua-language-server-6c296cea1e58968818154f3935715ae437166004.zip |
测试加载库函数
Diffstat (limited to 'server/test/main.lua')
-rw-r--r-- | server/test/main.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/test/main.lua b/server/test/main.lua index 16926e3c..a7152883 100644 --- a/server/test/main.lua +++ b/server/test/main.lua @@ -17,6 +17,15 @@ require 'utility' require 'global_protect' require 'build_package' +local function loadAllLibs() + assert(require 'bee.filesystem') + assert(require 'bee.subprocess') + assert(require 'bee.thread') + assert(require 'bee.socket') + assert(require 'lni') + assert(require 'lpeglabel') +end + local function main() local function test(name) local clock = os.clock() @@ -43,6 +52,7 @@ local function main() print('测试完成') end +loadAllLibs() main() log.debug('测试完成') |