Mercurial > vim
changeset 7767:c9daa07abf34
commit https://github.com/vim/vim/commit/ac80999985299dae4a9ef56dbf31fbdb35c04c08
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 25 22:44:54 2016 +0100
add missing test file
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 25 Jan 2016 23:00:05 +0100 |
parents | c131f60919d1 |
children | 3d8e4e0d7127 |
files | src/testdir/test_glob2regpat.vim |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/src/testdir/test_glob2regpat.vim @@ -0,0 +1,10 @@ +" Test glob2regpat() + +func Test_invalid() + call assert_fails('call glob2regpat(1.33)', 'E806:') +endfunc + +func Test_valid() + call assert_equal('^foo\.', glob2regpat('foo.*')) + call assert_equal('\.vim$', glob2regpat('*.vim')) +endfunc