mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
parent
b2b15e6e13
commit
ce6d2fbb61
10
src/nvim/testdir/test_glob2regpat.vim
Normal file
10
src/nvim/testdir/test_glob2regpat.vim
Normal file
@ -0,0 +1,10 @@
|
||||
" Test glob2regpat()
|
||||
|
||||
func Test_invalid()
|
||||
call assert_fails('call glob2regpat(1.33)', 'E806:')
|
||||
endfunc
|
||||
|
||||
func Test_valid()
|
||||
call assert_equal('^foo\.', glob2regpat('foo.*'))
|
||||
call assert_equal('\.vim$', glob2regpat('*.vim'))
|
||||
endfunc
|
Loading…
Reference in New Issue
Block a user