mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 10:16:32 +00:00
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:
committed by
John MacFarlane
parent
2ace15964b
commit
e0bf4bfe82
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user