mirror of
https://github.com/neovim/neovim.git
synced 2025-11-15 14:59:20 +00:00
vim-patch:7.4.2187
Problem: glob2regpat test fails on Windows.
Solution: Remove the checks that use backslashes.
7547a78446
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
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ static int included_patches[] = {
|
|||||||
// 2190,
|
// 2190,
|
||||||
// 2189,
|
// 2189,
|
||||||
2188,
|
2188,
|
||||||
// 2187,
|
2187,
|
||||||
// 2186 NA
|
// 2186 NA
|
||||||
2185,
|
2185,
|
||||||
// 2184,
|
// 2184,
|
||||||
|
|||||||
Reference in New Issue
Block a user