fix(#2094): fix the path resolving in windows (#2248)

* fix(#2094): fix the path resolving in windows

* fix test case

* tweak test case
This commit is contained in:
guanghechen
2025-06-17 16:55:19 +08:00
committed by GitHub
parent cf87220dff
commit 436a02c355
3 changed files with 184 additions and 40 deletions

View File

@@ -34,9 +34,9 @@ describe("join_paths", function()
assert.equals("path" .. utils.path_sep .. "file.lua", result)
end)
it("should return empty string when no paths provided", function()
it("should handle no paths provided", function()
local result = utils.join_paths()
assert.equals("", result)
assert.equals(".", result)
end)
it("should return first path when only one path provided", function()