test: remove penlight usage

This commit is contained in:
dundargoc 2023-04-14 00:09:56 +02:00 committed by GitHub
parent bfb28b62da
commit 3a3ec37260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,6 @@ local shared = vim
local assert = require('luassert')
local busted = require('busted')
local luv = require('luv')
local relpath = require('pl.path').relpath
local Paths = require('test.cmakeconfig.paths')
assert:set_parameter('TableFormatLevel', 100)
@ -21,6 +20,12 @@ local module = {
REMOVE_THIS = {},
}
local function relpath(p)
p = vim.fs.normalize(p)
local cwd = luv.cwd()
return p:gsub("^" .. cwd)
end
function module.isdir(path)
if not path then
return false