forked from aniani/vim
patch 7.4.2187
Problem: glob2regpat test fails on Windows. Solution: Remove the checks that use backslashes.
This commit is contained in:
@@ -9,14 +9,18 @@ endfunc
|
|||||||
func Test_valid()
|
func Test_valid()
|
||||||
call assert_equal('^foo\.', glob2regpat('foo.*'))
|
call assert_equal('^foo\.', glob2regpat('foo.*'))
|
||||||
call assert_equal('^foo.$', glob2regpat('foo?'))
|
call assert_equal('^foo.$', glob2regpat('foo?'))
|
||||||
call assert_equal('^foo?$', glob2regpat('foo\?'))
|
|
||||||
call assert_equal('\.vim$', glob2regpat('*.vim'))
|
call assert_equal('\.vim$', glob2regpat('*.vim'))
|
||||||
call assert_equal('^[abc]$', glob2regpat('[abc]'))
|
call assert_equal('^[abc]$', glob2regpat('[abc]'))
|
||||||
call assert_equal('^foo bar$', glob2regpat('foo\ bar'))
|
call assert_equal('^foo bar$', glob2regpat('foo\ bar'))
|
||||||
call assert_equal('^foo,bar$', glob2regpat('foo,bar'))
|
call assert_equal('^foo,bar$', glob2regpat('foo,bar'))
|
||||||
call assert_equal('^\(foo\|bar\)$', glob2regpat('{foo,bar}'))
|
call assert_equal('^\(foo\|bar\)$', glob2regpat('{foo,bar}'))
|
||||||
call assert_equal('^\(foo,bar\|foobar\)$', glob2regpat('{foo\,bar,foobar}'))
|
|
||||||
call assert_equal('^{foo,bar}$', glob2regpat('\{foo,bar\}'))
|
|
||||||
call assert_equal('^\\\(foo\|bar\\\)$', glob2regpat('\\{foo,bar\\}'))
|
|
||||||
call assert_equal('.*', glob2regpat('**'))
|
call assert_equal('.*', glob2regpat('**'))
|
||||||
|
|
||||||
|
if has('unix')
|
||||||
|
call assert_equal('^foo?$', glob2regpat('foo\?'))
|
||||||
|
call assert_equal('^\(foo,bar\|foobar\)$', glob2regpat('{foo\,bar,foobar}'))
|
||||||
|
call assert_equal('^{foo,bar}$', glob2regpat('\{foo,bar\}'))
|
||||||
|
call assert_equal('^\\\(foo\|bar\\\)$', glob2regpat('\\{foo,bar\\}'))
|
||||||
|
" todo: Windows
|
||||||
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|||||||
@@ -763,6 +763,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2187,
|
||||||
/**/
|
/**/
|
||||||
2186,
|
2186,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user