diff options
author | oni-link <knil.ino@gmail.com> | 2016-01-28 00:45:26 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-01-28 00:46:38 -0500 |
commit | db77b7bc9e510f790064333473abde98e0284af1 (patch) | |
tree | 000a661336029cbb787797b5b7bdaa4603360fd9 /test/functional/legacy/glob2regpat_spec.lua | |
parent | 894fcb778e123a9986be480e94dc78b545e01ec4 (diff) | |
download | rneovim-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.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.*')")) |