diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-20 21:55:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-20 21:55:41 +0800 |
commit | c63b2e404d8d2bb984afe3678a5ba2b2836380cc (patch) | |
tree | a70661effacc7a29caa8d49583673ac4be2faaf5 /test/other | |
parent | 85c5a4210e4447422cd5677369ae740ed65725a0 (diff) | |
download | lua-language-server-c63b2e404d8d2bb984afe3678a5ba2b2836380cc.zip |
remove the old version
Diffstat (limited to 'test/other')
-rw-r--r-- | test/other/fs.lua | 11 | ||||
-rw-r--r-- | test/other/init.lua | 1 | ||||
-rw-r--r-- | test/other/ver.lua | 27 |
3 files changed, 0 insertions, 39 deletions
diff --git a/test/other/fs.lua b/test/other/fs.lua deleted file mode 100644 index 069a2454..00000000 --- a/test/other/fs.lua +++ /dev/null @@ -1,11 +0,0 @@ -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 diff --git a/test/other/init.lua b/test/other/init.lua deleted file mode 100644 index 9e2b2cfb..00000000 --- a/test/other/init.lua +++ /dev/null @@ -1 +0,0 @@ -require 'other.ver' diff --git a/test/other/ver.lua b/test/other/ver.lua deleted file mode 100644 index 83abcb26..00000000 --- a/test/other/ver.lua +++ /dev/null @@ -1,27 +0,0 @@ -local platform = require 'bee.platform' - -assert(_VERSION == 'Lua 5.4', '必须是 Lua 5.4') - -local arch = (function() - if string.packsize then - local size = string.packsize "T" - if size == 8 then - return 64 - end - if size == 4 then - return 32 - end - else - if platform ~= "windows" then - return 64 - end - local size = #tostring(io.stderr) - if size <= 15 then - return 32 - end - return 64 - end - assert(false, "unknown arch") -end)() - -assert(arch == 64, '必须是 x84_64') |