Add tests for search_path_separator

This commit is contained in:
Albert Krewinkel 2021-02-02 22:57:16 +01:00 committed by John MacFarlane
parent e0bf4bfe82
commit 6f79042502

View file

@ -14,6 +14,14 @@ return {
assert.is_truthy(path.separator:match '^[/\\]$') assert.is_truthy(path.separator:match '^[/\\]$')
end), 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' { group 'module' {
test('check function existence', function () test('check function existence', function ()
local functions = { local functions = {