view src/testdir/test_glob2regpat.vim @ 9052:3a6b66c02d6d v7.4.1811

commit https://github.com/vim/vim/commit/3266c85a44a637862b0ed6e531680c6ab2897ab5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 30 18:07:05 2016 +0200 patch 7.4.1811 Problem: Netbeans channel gets garbage collected. Solution: Set reference in nb_channel.
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Apr 2016 18:15:06 +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