1" Test glob2regpat() 2 3func Test_invalid() 4 call assert_fails('call glob2regpat(1.33)', 'E806:') 5endfunc 6 7func Test_valid() 8 call assert_equal('^foo\.', glob2regpat('foo.*')) 9 call assert_equal('\.vim$', glob2regpat('*.vim')) 10endfunc 11