Mercurial > vim
diff src/testdir/test_glob2regpat.vim @ 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 | |
children | 6882920b42da |
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