aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/glob2regpat_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/glob2regpat_spec.lua')
-rw-r--r--test/functional/legacy/glob2regpat_spec.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/legacy/glob2regpat_spec.lua b/test/functional/legacy/glob2regpat_spec.lua
index 373aad68a1..25f0ffd007 100644
--- a/test/functional/legacy/glob2regpat_spec.lua
+++ b/test/functional/legacy/glob2regpat_spec.lua
@@ -12,6 +12,9 @@ describe('glob2regpat()', function()
helpers.feed('<cr>')
neq(nil, string.find(eval('v:errmsg'), '^E806:'))
end)
+ it('returns empty string for empty input', function()
+ eq('', eval("glob2regpat('')"))
+ end)
it('handles valid input', function()
eq('^foo\\.', eval("glob2regpat('foo.*')"))
eq('\\.vim$', eval("glob2regpat('*.vim')"))