diff options
Diffstat (limited to 'test/functional/legacy/glob2regpat_spec.lua')
-rw-r--r-- | test/functional/legacy/glob2regpat_spec.lua | 4 |
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.*')")) |