summaryrefslogtreecommitdiff
path: root/test/other/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-03-24 13:57:52 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-03-24 13:57:52 +0800
commit526d262770d4b0182a8dfd5961fbc965e93bbc53 (patch)
tree423a6c6cff72713b4f67900e1a05c4d2d16f374b /test/other/init.lua
parentb43cbe27152785d21ae4bb54265c345f85183940 (diff)
downloadlua-language-server-526d262770d4b0182a8dfd5961fbc965e93bbc53.zip
测试时检查二进制版本与arch
Diffstat (limited to 'test/other/init.lua')
-rw-r--r--test/other/init.lua12
1 files changed, 1 insertions, 11 deletions
diff --git a/test/other/init.lua b/test/other/init.lua
index 069a2454..9e2b2cfb 100644
--- a/test/other/init.lua
+++ b/test/other/init.lua
@@ -1,11 +1 @@
-local fs = require 'bee.filesystem'
-local platform = require 'bee.platform'
-local path = fs.path '/a/b/c/d/e/../../../..'
-local absolute = fs.absolute(path)
-if platform.OS == 'Windows' then
- assert(absolute:string():sub(-2) == '/a', absolute:string())
-elseif platform.OS == 'Linux' then
- assert(absolute:string():sub(-3) == '/a/', absolute:string())
-elseif platform.OS == 'macOS' then
- -- 不支持
-end
+require 'other.ver'