Remove obsolete stuffs

This commit is contained in:
leokhoa
2025-10-05 17:33:37 +02:00
parent 71b1fe4850
commit 1c759708e4
15680 changed files with 4890893 additions and 139873 deletions

View File

@@ -0,0 +1,24 @@
local path = require('path')
describe("path module", function()
describe("is_absolute", function ()
it("should return true for absolute paths", function ()
assert.is_true(path.is_absolute("c:/foo.bar"))
assert.is_true(path.is_absolute("c:/foo.bar/baz"))
assert.is_true(path.is_absolute("c:\\foo.bar"))
assert.is_true(path.is_absolute("c:\\foo.bar\\baz"))
assert.is_true(path.is_absolute("z:/baz\\foo.bar"))
assert.is_true(path.is_absolute("z:\\baz/foo.bar"))
assert.is_true(path.is_absolute("c:/quux/..\\baz/foo.bar"))
end)
it("should return false for relative paths", function ()
assert.is_false(path.is_absolute("./foo.bar"))
assert.is_false(path.is_absolute(".\\baz"))
assert.is_false(path.is_absolute("foo.bar"))
assert.is_false(path.is_absolute(".\\foo.bar\\baz"))
assert.is_false(path.is_absolute("./baz\\foo.bar"))
assert.is_false(path.is_absolute("..\\baz/foo.bar"))
end)
end)
end)