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:
parent
2ace15964b
commit
e0bf4bfe82
1 changed files with 19 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue