aboutsummaryrefslogtreecommitdiff
path: root/test/lua
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-02-02 22:57:16 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2021-02-02 21:04:30 -0800
commit6f79042502851a1ac50c5c462f4121a1c659b511 (patch)
treec3b3bb549091eea175c8a18560dda7e7dc8080a1 /test/lua
parente0bf4bfe82a2246b9ea04cfbb97dff072d42f3f6 (diff)
downloadpandoc-6f79042502851a1ac50c5c462f4121a1c659b511.tar.gz
Add tests for search_path_separator
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/module/pandoc-path.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lua/module/pandoc-path.lua b/test/lua/module/pandoc-path.lua
index 7f3b21fe2..81c11e7b7 100644
--- a/test/lua/module/pandoc-path.lua
+++ b/test/lua/module/pandoc-path.lua
@@ -14,6 +14,14 @@ return {
assert.is_truthy(path.separator:match '^[/\\]$')
end),
},
+ group 'search path separator' {
+ test('is string', function ()
+ assert.are_same(type(path.search_path_separator), 'string')
+ end),
+ test('is colon or semicolon', function ()
+ assert.is_truthy(path.search_path_separator:match '^[:;]$')
+ end)
+ },
group 'module' {
test('check function existence', function ()
local functions = {