Skip to content

Commit ac80999

Browse files
committed
add missing test file
1 parent 7465c63 commit ac80999

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/testdir/test_glob2regpat.vim

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
" Test glob2regpat()
2+
3+
func Test_invalid()
4+
call assert_fails('call glob2regpat(1.33)', 'E806:')
5+
endfunc
6+
7+
func Test_valid()
8+
call assert_equal('^foo\.', glob2regpat('foo.*'))
9+
call assert_equal('\.vim$', glob2regpat('*.vim'))
10+
endfunc

0 commit comments

Comments
 (0)