view src/testdir/test_glob2regpat.vim @ 9461:51320e7fa2f8

Added tag v7.4.2011 for changeset cdffa812f9d1cfea65d8f7d94e8f3627870dff84
author Christian Brabandt <cb@256bit.org>
date Sat, 09 Jul 2016 19:00:07 +0200
parents c9daa07abf34
children 6882920b42da
line wrap: on
line source

" 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