diff options
-rw-r--r-- | server/test.lua | 1 | ||||
-rw-r--r-- | server/test/other/init.lua | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/server/test.lua b/server/test.lua index aeeebd86..bdac8ddc 100644 --- a/server/test.lua +++ b/server/test.lua @@ -51,6 +51,7 @@ local function main() test 'document_symbol' test 'crossfile' test 'full' + test 'other' print('测试完成') end diff --git a/server/test/other/init.lua b/server/test/other/init.lua new file mode 100644 index 00000000..ce360e51 --- /dev/null +++ b/server/test/other/init.lua @@ -0,0 +1,4 @@ +local fs = require 'bee.filesystem' +local path = fs.path '/a/b/c/d/e/../../../..' +local absolute = fs.absolute(path) +assert(absolute:string():sub(-2) == '/a') |