aboutsummaryrefslogtreecommitdiff
path: root/test/lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/module/pandoc-path.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/lua/module/pandoc-path.lua b/test/lua/module/pandoc-path.lua
index 9a5a3f6c8..7f3b21fe2 100644
--- a/test/lua/module/pandoc-path.lua
+++ b/test/lua/module/pandoc-path.lua
@@ -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)
+ }
}