Skip to content

Commit a99b7c2

Browse files
committed
fix another test
1 parent 6a9654b commit a99b7c2

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lua/plenary/path2.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
--- - `Path.new` no longer supported (think it's more confusing that helpful
99
--- and not really used as far as I can tell)
1010
---
11+
--- - `Path.new` drops `sep` table param (eg. `Path:new {"foo\\bar/baz", sep = "/"}`)
12+
---
1113
--- - drop `__concat` metamethod? it was untested and had some todo comment,
1214
--- not sure how functional it is
1315
---

tests/plenary/path2_spec.lua

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ local function plat_path(p)
4646
return p:gsub("/", "\\")
4747
end
4848

49-
5049
-- set up mock file with consistent eol regardless of system (git autocrlf settings)
5150
-- simplifies reading tests
5251
local licence_lines = {
@@ -159,11 +158,6 @@ describe("Path2", function()
159158
return paths
160159
end
161160

162-
it("custom sep", function()
163-
local p = Path:new { "foo\\bar/baz", sep = "/" }
164-
assert.are.same(p.filename, "foo/bar/baz")
165-
end)
166-
167161
describe("noshellslash", function()
168162
set_shellslash(false)
169163
test_filename(get_windows_paths())

0 commit comments

Comments
 (0)