aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/glob2regpat_spec.lua
diff options
context:
space:
mode:
authoroni-link <knil.ino@gmail.com>2016-01-28 00:45:26 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-01-28 00:46:38 -0500
commitdb77b7bc9e510f790064333473abde98e0284af1 (patch)
tree000a661336029cbb787797b5b7bdaa4603360fd9 /test/functional/legacy/glob2regpat_spec.lua
parent894fcb778e123a9986be480e94dc78b545e01ec4 (diff)
downloadrneovim-db77b7bc9e510f790064333473abde98e0284af1.tar.gz
rneovim-db77b7bc9e510f790064333473abde98e0284af1.tar.bz2
rneovim-db77b7bc9e510f790064333473abde98e0284af1.zip
file_pat_to_reg_pat(): handle empty string.
Diffstat (limited to 'test/functional/legacy/glob2regpat_spec.lua')
-rw-r--r--test/functional/legacy/glob2regpat_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/legacy/glob2regpat_spec.lua b/test/functional/legacy/glob2regpat_spec.lua
index 25f0ffd007..357128bcb6 100644
--- a/test/functional/legacy/glob2regpat_spec.lua
+++ b/test/functional/legacy/glob2regpat_spec.lua
@@ -12,8 +12,8 @@ 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('')"))
+ it('returns ^$ for empty input', function()
+ eq('^$', eval("glob2regpat('')"))
end)
it('handles valid input', function()
eq('^foo\\.', eval("glob2regpat('foo.*')"))