diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-01-27 03:26:13 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-01-27 22:19:50 -0500 |
commit | 894fcb778e123a9986be480e94dc78b545e01ec4 (patch) | |
tree | 3ece268f8b71a2e892d256d8af72a8e2f80da4ff /test/functional/legacy/glob2regpat_spec.lua | |
parent | 765d394f18733bc6d962e3915ff53c06ac095642 (diff) | |
download | rneovim-894fcb778e123a9986be480e94dc78b545e01ec4.tar.gz rneovim-894fcb778e123a9986be480e94dc78b545e01ec4.tar.bz2 rneovim-894fcb778e123a9986be480e94dc78b545e01ec4.zip |
glob2regpat(): handle empty string.
Diffstat (limited to 'test/functional/legacy/glob2regpat_spec.lua')
-rw-r--r-- | test/functional/legacy/glob2regpat_spec.lua | 3 |
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')")) |