diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/crossfile/hover.lua | 2 | ||||
-rw-r--r-- | test/full/projects.lua | 2 | ||||
-rw-r--r-- | test/full/self.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index a18c714b..8acae6f5 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -95,7 +95,7 @@ TEST { * [a.lua](file:///a.lua) (搜索路径: `?.lua`)]], } -if require 'bee.platform'.OS == 'Windows' then +if require 'bee.platform'.os == 'windows' then TEST { { path = 'Folder/a.lua', diff --git a/test/full/projects.lua b/test/full/projects.lua index 20ef6724..22b27443 100644 --- a/test/full/projects.lua +++ b/test/full/projects.lua @@ -23,7 +23,7 @@ local function doProjects(pathname) print('基准诊断目录:', path) fsu.scanDirectory(path, function (path) - if path:extension():string() ~= '.lua' then + if path:extension() ~= '.lua' then return end local uri = furi.encode(path:string()) diff --git a/test/full/self.lua b/test/full/self.lua index d118e034..69da54a0 100644 --- a/test/full/self.lua +++ b/test/full/self.lua @@ -14,7 +14,7 @@ local uris = {} files.reset() fsu.scanDirectory(path, function (path) - if path:extension():string() ~= '.lua' then + if path:extension() ~= '.lua' then return end local uri = furi.encode(path:string()) |