Mercurial > vim
view src/testdir/test_glob2regpat.vim @ 8450:198586538c01
Added tag v7.4.1515 for changeset 3d567b5839c51d9a2ce3d668f6427ff76e7f1cd4
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 08 Mar 2016 16:15:04 +0100 |
parents | c9daa07abf34 |
children | 6882920b42da |
line wrap: on
line source
" 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