Skip to content

Commit 87aa581

Browse files
committed
修复测试
1 parent f208589 commit 87aa581

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

script/filewatch.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ local function isExists(filename)
1313
if not suc or not exists then
1414
return false
1515
end
16-
if plat.OS ~= 'Windows' then
16+
if plat.os ~= 'windows' then
1717
return true
1818
end
1919
local res = fs.fullpath(path)

script/library.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ local function loadSingle3rdConfig(libraryDir)
365365
end
366366
if cfg.files then
367367
for i, filename in ipairs(cfg.files) do
368-
if plat.OS == 'Windows' then
368+
if plat.os == 'windows' then
369369
filename = filename:gsub('/', '\\')
370370
else
371371
filename = filename:gsub('\\', '/')

script/meta/bee/filesystem.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ end
2424
function fsPath:stem()
2525
end
2626

27-
---@return fs.path
27+
---@return string
2828
function fsPath:extension()
2929
end
3030

test/crossfile/hover.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ TEST {
9595
* [a.lua](file:///a.lua) (搜索路径: `?.lua`)]],
9696
}
9797

98-
if require 'bee.platform'.OS == 'Windows' then
98+
if require 'bee.platform'.os == 'windows' then
9999
TEST {
100100
{
101101
path = 'Folder/a.lua',

test/full/projects.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ local function doProjects(pathname)
2323

2424
print('基准诊断目录:', path)
2525
fsu.scanDirectory(path, function (path)
26-
if path:extension():string() ~= '.lua' then
26+
if path:extension() ~= '.lua' then
2727
return
2828
end
2929
local uri = furi.encode(path:string())

test/full/self.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ local uris = {}
1414

1515
files.reset()
1616
fsu.scanDirectory(path, function (path)
17-
if path:extension():string() ~= '.lua' then
17+
if path:extension() ~= '.lua' then
1818
return
1919
end
2020
local uri = furi.encode(path:string())

0 commit comments

Comments
 (0)