Check that all documented functions are present.

Rely on tests in the module package to check the correctness of each
function.
This commit is contained in:
Albert Krewinkel 2021-02-02 22:52:32 +01:00 committed by John MacFarlane
parent 2ace15964b
commit e0bf4bfe82

View file

@ -14,4 +14,23 @@ return {
assert.is_truthy(path.separator:match '^[/\\]$')
end),
},
group 'module' {
test('check function existence', function ()
local functions = {
'directory',
'filename',
'is_absolute',
'is_relative',
'join',
'make_relative',
'normalize',
'split',
'split_extension',
'split_search_path',
}
for _, f in ipairs(functions) do
assert.are_equal(type(path[f]), 'function')
end
end)
}
}