robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
f907614088
master
1local t =require ( 'test.testutil' ) 2local n =require ( 'test.functional.testnvim' )() 3 4local describe , it , before_each =t . describe , t . it , t . before_each 5local clear =n . clear 6local eq , eval =t . eq , n . eval 7 8describe ( 'glob2regpat()' , function () 9before_each ( clear ) 10 11it ( 'returns ^$ for empty input' , function () 12eq ( '^$' , eval ( "glob2regpat('')" )) 13end ) 14it ( 'handles valid input' , function () 15eq ( '^foo\\.' , eval ( "glob2regpat('foo.*')" )) 16eq ( '\\.vim$' , eval ( "glob2regpat('*.vim')" )) 17end ) 18end )