vim-patch:8.1.0206: duplicate test function name

Problem:    Duplicate test function name.
Solution:   Rename both functions.
cd96eef3a8
This commit is contained in:
Jan Edmund Lazo
2019-05-25 14:47:17 -04:00
parent e664c2a158
commit 0422cbae6b

View File

@@ -1,12 +1,12 @@
" Test glob2regpat() " Test glob2regpat()
func Test_invalid() func Test_glob2regpat_invalid()
call assert_fails('call glob2regpat(1.33)', 'E806:') call assert_fails('call glob2regpat(1.33)', 'E806:')
call assert_fails('call glob2regpat("}")', 'E219:') call assert_fails('call glob2regpat("}")', 'E219:')
call assert_fails('call glob2regpat("{")', 'E220:') call assert_fails('call glob2regpat("{")', 'E220:')
endfunc endfunc
func Test_valid() func Test_glob2regpat_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('\.vim$', glob2regpat('*.vim')) call assert_equal('\.vim$', glob2regpat('*.vim'))