git.iko.soy/typeable/pandoc
on master help sign in
Check that all documented functions are present.

Rely on tests in the module package to check the correctness of each function.

commite0bf4bfe82a2246b9ea04cfbb97dff072d42f3f6 authorAlbert Krewinkel <albert@zeitkraut.de> dateTue 2 Feb 2021, 22:52 (6 years ago) parent2ace159
1 file changed+19
test/lua/module/pandoc-path.lua+19
test/lua/module/pandoc-path.lua+19
@@ -14,4 +14,23 @@ return {
1414 assert.is_truthy(path.separator:match '^[/\\]$')
1515 end),
1616 },
17+ group 'module' {
18+ test('check function existence', function ()
19+ local functions = {
20+ 'directory',
21+ 'filename',
22+ 'is_absolute',
23+ 'is_relative',
24+ 'join',
25+ 'make_relative',
26+ 'normalize',
27+ 'split',
28+ 'split_extension',
29+ 'split_search_path',
30+ }
31+ for _, f in ipairs(functions) do
32+ assert.are_equal(type(path[f]), 'function')
33+ end
34+ end)
35+ }
1736}